feat: webpack-html-plugin

This commit is contained in:
NGPixel
2018-03-17 02:35:52 -04:00
parent 1adf98eb8d
commit 3dc9b92596
7 changed files with 245 additions and 30 deletions

View File

@@ -1,4 +1,3 @@
const webpack = require('webpack')
const merge = require('webpack-merge')
const CleanWebpackPlugin = require('clean-webpack-plugin')
@@ -26,9 +25,6 @@ module.exports = merge(common, {
root: process.cwd(),
verbose: false
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new OptimizeCssAssetsPlugin({
cssProcessorOptions: { discardComments: { removeAll: true } },
canPrint: true