Skip to content

Commit

Permalink
Support .json extension
Browse files Browse the repository at this point in the history
Some libraries rely on it, and they work fine with browserify.
Let’s just do the right thing here by default.
  • Loading branch information
gaearon committed Jul 27, 2016
1 parent 1740fa9 commit a11d6a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
publicPath: '/'
},
resolve: {
extensions: ['', '.js'],
extensions: ['', '.js', '.json'],
},
resolveLoader: {
root: paths.ownNodeModules,
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
publicPath: publicPath
},
resolve: {
extensions: ['', '.js'],
extensions: ['', '.js', '.json'],
},
resolveLoader: {
root: paths.ownNodeModules,
Expand Down

0 comments on commit a11d6a3

Please sign in to comment.