From 4a1bfadb659bca28ef921a6c21a72676f69097ba Mon Sep 17 00:00:00 2001 From: AbinayaSubbiah Date: Thu, 1 Jun 2017 15:16:46 +0530 Subject: [PATCH] "configuration has an unknown property 'htmlLoader'" error fixed. "configuration has an unknown property 'htmlLoader'" error fixed. --- config/webpack.prod.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 + } }) ] });