Skip to content

Commit

Permalink
[FEATURE] - add common shake plugin (worked great!)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelBenin committed Jul 14, 2017
1 parent c002fc9 commit e8d6039
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
2 changes: 2 additions & 0 deletions gulpfile.babel.js/configs/webpack.config.production.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// https://webpack.github.io/docs/list-of-plugins.html
const path = require('path');
const webpack = require('webpack');
const ShakePlugin = require('webpack-common-shake').Plugin;

module.exports = {
devtool: 'source-map',
Expand All @@ -16,6 +17,7 @@ module.exports = {
RUNTIME_ENV: JSON.stringify('browser')
}
}),
new ShakePlugin(),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.LoaderOptionsPlugin({
minimize: true
Expand Down
31 changes: 18 additions & 13 deletions npm-shrinkwrap.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"wdio-selenium-standalone-service": "0.0.9",
"webdriverio": "4.8.0",
"webpack": "3.2.0",
"webpack-common-shake": "1.5.3",
"webpack-dev-server": "2.5.1"
},
"engines": {
Expand Down

0 comments on commit e8d6039

Please sign in to comment.