Skip to content

Commit

Permalink
Webpack: Use a root instead of a module directory for client
Browse files Browse the repository at this point in the history
This shaves about 10s off of the initial build on my laptop. See webpack/webpack#1574 (comment) for details on why this might help.
  • Loading branch information
blowery committed Mar 17, 2016
1 parent 4fe7fc9 commit 7ddbedd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Expand Up @@ -58,7 +58,8 @@ webpackConfig = {
},
resolve: {
extensions: [ '', '.json', '.js', '.jsx' ],
modulesDirectories: [ 'node_modules', path.join( __dirname, 'client' ) ]
root: path.join( __dirname, 'client' ),
modulesDirectories: [ 'node_modules' ]
},
node: {
console: false,
Expand Down

0 comments on commit 7ddbedd

Please sign in to comment.