Skip to content

Commit a11d6a3

Browse files
committed
Support .json extension
Some libraries rely on it, and they work fine with browserify. Let’s just do the right thing here by default.
1 parent 1740fa9 commit a11d6a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: config/webpack.config.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
publicPath: '/'
3030
},
3131
resolve: {
32-
extensions: ['', '.js'],
32+
extensions: ['', '.js', '.json'],
3333
},
3434
resolveLoader: {
3535
root: paths.ownNodeModules,

Diff for: config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
publicPath: publicPath
3737
},
3838
resolve: {
39-
extensions: ['', '.js'],
39+
extensions: ['', '.js', '.json'],
4040
},
4141
resolveLoader: {
4242
root: paths.ownNodeModules,

0 commit comments

Comments
 (0)