Skip to content

Commit

Permalink
Desktop: Improve Webpack resolve configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
spen committed Mar 31, 2017
1 parent 6225942 commit 872a683
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions desktop/webpack.shared.js
Expand Up @@ -47,14 +47,15 @@ module.exports = {
'devdocs/components-usage-stats.json'
],
resolve: {
extensions: [ '', '.js', '.jsx' ],
extensions: [ '', '.js', '.json', '.jsx' ],
modulesDirectories: [
'node_modules',
],
root: [
path.join( __dirname, '..', 'server' ),
path.join( __dirname, '..', 'client' ),
'desktop'
path.join( __dirname, 'desktop' ),
],

},
plugins: [
// new webpack.optimize.DedupePlugin(),
Expand Down

0 comments on commit 872a683

Please sign in to comment.