Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit d2c3c77

Browse files
authored
Remove json-loader from base webpack config
With the webpack 4+, you don't need to specify the json-loader in your webpack config. Instead, you can simply import the .json files like this ``` import customConfig from "./config.json"; ```
1 parent a908b53 commit d2c3c77

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

config/webpack.base.babel.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ module.exports = (options) => ({
7070
test: /\.html$/,
7171
use: 'html-loader'
7272
},
73-
{
74-
test: /\.json$/,
75-
use: 'json-loader'
76-
},
7773
{
7874
test: /\.(mp4|webm)$/,
7975
use: {

0 commit comments

Comments
 (0)