Skip to content

Commit

Permalink
Enable uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
kuy committed Oct 10, 2016
1 parent 3d6bce5 commit 6ed9ffa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

var webpack = require('webpack');

module.exports = {
entry: {
autocomplete: './autocomplete/index.js',
Expand All @@ -23,5 +25,9 @@ module.exports = {
filename: '[name].bundle.js',
publicPath: '/in-memory'
},
devtool: 'inline-source-map'
plugins: (process.env.NODE_ENV === 'production') ? [
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false }
})
] : []
};

0 comments on commit 6ed9ffa

Please sign in to comment.