mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 10:26:35 +00:00
Set css optimise level to 0 (#15652)
This commit is contained in:
parent
2ab8bba4b0
commit
f803bbadc9
@ -53,14 +53,16 @@ module.exports.definedVars = ({ isProdBuild, latestBuild, defineOverlay }) => ({
|
|||||||
...defineOverlay,
|
...defineOverlay,
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports.htmlMinifierOptions = {
|
const htmlMinifierOptions = {
|
||||||
caseSensitive: true,
|
caseSensitive: true,
|
||||||
collapseWhitespace: true,
|
collapseWhitespace: true,
|
||||||
conservativeCollapse: true,
|
conservativeCollapse: true,
|
||||||
decodeEntities: true,
|
decodeEntities: true,
|
||||||
removeComments: true,
|
removeComments: true,
|
||||||
removeRedundantAttributes: true,
|
removeRedundantAttributes: true,
|
||||||
minifyCSS: true,
|
minifyCSS: {
|
||||||
|
level: 0,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.terserOptions = (latestBuild) => ({
|
module.exports.terserOptions = (latestBuild) => ({
|
||||||
@ -119,7 +121,7 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild }) => ({
|
|||||||
"@polymer/polymer/lib/utils/html-tag": ["html"],
|
"@polymer/polymer/lib/utils/html-tag": ["html"],
|
||||||
},
|
},
|
||||||
strictCSS: true,
|
strictCSS: true,
|
||||||
htmlMinifier: module.exports.htmlMinifierOptions,
|
htmlMinifier: htmlMinifierOptions,
|
||||||
failOnError: true, // we can turn this off in case of false positives
|
failOnError: true, // we can turn this off in case of false positives
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user