Skip to content

Commit

Permalink
adds self node_modules dir to webpack exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Feb 14, 2017
1 parent 7ca3b79 commit ccdeb29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webpack/webpack.config.dev-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const commonLoaders = [
plugins: ["transform-decorators-legacy"]
},
include: [appPath, path.join(__dirname, "../src")],
exclude: path.join(appDir, "node_modules")
exclude: [path.join(appDir, "node_modules"), path.join(__dirname, "../node_modules")]
},
{
test: /\.json$/, loader: "json"
Expand Down
2 changes: 1 addition & 1 deletion webpack/webpack.config.dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const commonLoaders = [
plugins: ["transform-decorators-legacy"]
},
include: [appPath, path.join(__dirname, "../src")],
exclude: path.join(appDir, "node_modules")
exclude: [path.join(appDir, "node_modules"), path.join(__dirname, "../node_modules")]
},
{
test: /\.json$/, loader: "json"
Expand Down
2 changes: 1 addition & 1 deletion webpack/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const commonLoaders = [
]
},
include: [appPath, path.join(__dirname, "../src")],
exclude: path.join(appDir, "node_modules")
exclude: [path.join(appDir, "node_modules"), path.join(__dirname, "../node_modules")]
},
{
test: /\.json$/, loader: "json"
Expand Down

0 comments on commit ccdeb29

Please sign in to comment.