Set css optimise level to 0 (#15652)

This commit is contained in:
Bram Kragten 2023-03-01 15:24:00 +01:00 committed by GitHub
parent 2ab8bba4b0
commit f803bbadc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,14 +53,16 @@ module.exports.definedVars = ({ isProdBuild, latestBuild, defineOverlay }) => ({
...defineOverlay,
});
module.exports.htmlMinifierOptions = {
const htmlMinifierOptions = {
caseSensitive: true,
collapseWhitespace: true,
conservativeCollapse: true,
decodeEntities: true,
removeComments: true,
removeRedundantAttributes: true,
minifyCSS: true,
minifyCSS: {
level: 0,
},
};
module.exports.terserOptions = (latestBuild) => ({
@ -119,7 +121,7 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild }) => ({
"@polymer/polymer/lib/utils/html-tag": ["html"],
},
strictCSS: true,
htmlMinifier: module.exports.htmlMinifierOptions,
htmlMinifier: htmlMinifierOptions,
failOnError: true, // we can turn this off in case of false positives
},
],