From f803bbadc9537f9bbddd4034887242e89c5b7c9c Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 1 Mar 2023 15:24:00 +0100 Subject: [PATCH] Set css optimise level to 0 (#15652) --- build-scripts/bundle.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build-scripts/bundle.js b/build-scripts/bundle.js index 0c36092f36..c1e2ef1d10 100644 --- a/build-scripts/bundle.js +++ b/build-scripts/bundle.js @@ -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 }, ],