usemin
Version:
Replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views).
26 lines (25 loc) • 450 B
JavaScript
module.exports = {
uglifyjs: {
outSourceMap: 'minified.js.map',
warnings: true,
mangle: true,
compress: {
loops: true,
unused: true,
},
},
cleancss: {
advanced: true,
keepBreaks: true,
rebase: false,
},
htmlminifier: {
removeComments: true,
collapseWhitespace: true,
removeEmptyAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
minifyJS: false,
minifyCSS: false,
},
};