Skip to content

Commit

Permalink
webpack util library
Browse files Browse the repository at this point in the history
  • Loading branch information
roachjc committed Sep 19, 2017
1 parent d50df4f commit c63d1a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ module.exports = merge([
paths: glob.sync(`${PATHS.app}/**/*.js`, { nodir: true }),
}),
utils.extractVendorCode(),
utils.uglifyJS(),
]);
6 changes: 6 additions & 0 deletions webpack.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ exports.extractVendorCode = () => ({
],
});

exports.uglifyJS = () => ({
plugins: [
new webpack.optimize.UglifyJsPlugin(),
],
});

0 comments on commit c63d1a4

Please sign in to comment.