|
|
@@ -69,7 +69,27 @@ module.exports = {
|
|
|
'~plugins': path.join(__dirname, 'plugins'),
|
|
|
'~store': path.join(__dirname, 'store')
|
|
|
})
|
|
|
- // console.log( config.plugins)
|
|
|
+ if (config.plugins[4] && config.plugins[4].options && config.plugins[4].options.minify) {
|
|
|
+ config.plugins[4].options.minify = {
|
|
|
+ removeAttributeQuotes: true,
|
|
|
+ collapseWhitespace: true,
|
|
|
+ html5: true,
|
|
|
+ minifyCSS: true,
|
|
|
+ removeComments: true,
|
|
|
+ removeEmptyAttributes: true,
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (config.plugins[5] && config.plugins[5].options && config.plugins[5].options.minify) {
|
|
|
+ config.plugins[5].options.minify = {
|
|
|
+ removeAttributeQuotes: true,
|
|
|
+ collapseWhitespace: true,
|
|
|
+ html5: true,
|
|
|
+ minifyCSS: true,
|
|
|
+ removeComments: true,
|
|
|
+ removeEmptyAttributes: true,
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
// config.plugins.push(new HtmlWebpackPlugin({
|
|
|
// title: 'React Title !',
|
|
|
// template: './app.html',
|