@mhy/config
Version:
> This documentation is not complete. It's in progress and it's a BETA version. Use the tool at your own risk.
24 lines (21 loc) • 553 B
JavaScript
;
const HtmlWebpackPlugin = require('html-webpack-plugin');
const {
indexTemplate
} = require('../../');
module.exports.default = (plugins = []) => [new HtmlWebpackPlugin({
inject: true,
template: indexTemplate,
minify: {
removeComments: true,
collapseWhitespace: true,
removeRedundantAttributes: true,
useShortDoctype: true,
removeEmptyAttributes: true,
removeStyleLinkTypeAttributes: true,
keepClosingSlash: true,
minifyJS: true,
minifyCSS: true,
minifyURLs: true
}
})].concat(plugins);