diff --git a/config/webpack.prod.js b/config/webpack.prod.js index ee9cce2..f1c0ef8 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -16,13 +16,8 @@ module.exports = webpackMerge(commonConfig, { chunkFilename: '[id].[hash].chunk.js' }, - htmlLoader: { - minimize: false // workaround for ng2 - }, - plugins: [ - new webpack.NoErrorsPlugin(), - new webpack.optimize.DedupePlugin(), + new webpack.NoEmitOnErrorsPlugin(), new webpack.optimize.UglifyJsPlugin({ // https://github.com/angular/angular/issues/10618 mangle: { keep_fnames: true @@ -33,6 +28,11 @@ module.exports = webpackMerge(commonConfig, { 'process.env': { 'ENV': JSON.stringify(ENV) } + }), + new webpack.LoaderOptionsPlugin({ + htmlLoader: { + minimize: false // workaround for ng2 + } }) ] });