Skip to content

Commit

Permalink
add DuplicatePackageCheckerPlugin to webpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
penx committed Dec 1, 2017
1 parent 2140017 commit b22a6f4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/web-server/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
const eslintFormatter = require('react-dev-utils/eslintFormatter');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
const getClientEnvironment = require('./env');
const paths = require('./paths');

Expand Down Expand Up @@ -225,6 +226,7 @@ module.exports = {
],
},
plugins: [
new DuplicatePackageCheckerPlugin(),
// Makes some environment variables available in index.html.
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
Expand Down
2 changes: 2 additions & 0 deletions packages/web-server/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
const eslintFormatter = require('react-dev-utils/eslintFormatter');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
const paths = require('./paths');
const getClientEnvironment = require('./env');

Expand Down Expand Up @@ -241,6 +242,7 @@ module.exports = {
],
},
plugins: [
new DuplicatePackageCheckerPlugin(),
// Makes some environment variables available in index.html.
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
Expand Down
34 changes: 33 additions & 1 deletion packages/web-server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/web-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,8 @@
},
"eslintConfig": {
"extends": "react-app"
},
"devDependencies": {
"duplicate-package-checker-webpack-plugin": "^2.0.1"
}
}

0 comments on commit b22a6f4

Please sign in to comment.