Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins: [
- new webpack.optimize.CommonsChunkPlugin({
- name: ['app', 'vendor', 'polyfills']
- }),
- new HtmlWebpackPlugin({
- template: 'config/index.html'
- }),
- // minifies our code
- new webpack.optimize.UglifyJsPlugin({
- beautify: false,
- comments: false,
- compress: {
- screw_ie8: true,
- warnings: false
- },
- mangle: {
- keep_fnames: true,
- screw_i8: true
- }
- }),
- new webpack.DefinePlugin({
- 'process.env': {
- 'ENV': JSON.stringify(ENV)
- }
- })
- ]
Add Comment
Please, Sign In to add comment