1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-01 19:10:22 +02:00

remove html minification

This commit is contained in:
Kushagra Gour
2018-06-16 15:25:26 +05:30
parent 3c5c8b012b
commit febf821f87
2 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,12 @@ export default function (config, env, helpers) {
if (env.isProd) {
config.devtool = false; // disable sourcemaps
const htmlWebpackPlugin = helpers.getPluginsByName(config, 'HtmlWebpackPlugin')[0];
Object.assign(htmlWebpackPlugin.plugin.options.minify, {
removeComments: false,
collapseWhitespace: false
})
config.plugins.push(
new CommonsChunkPlugin({
name: 'vendor',