mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-11 11:26:35 +00:00
Fix minifying templates from dependencies (#18795)
This commit is contained in:
parent
c1c186d279
commit
3a94deef69
@ -120,15 +120,21 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild, isTestBuild }) => ({
|
|||||||
"template-html-minifier",
|
"template-html-minifier",
|
||||||
{
|
{
|
||||||
modules: {
|
modules: {
|
||||||
lit: [
|
...Object.fromEntries(
|
||||||
|
["lit", "lit-element", "lit-html"].map((m) => [
|
||||||
|
m,
|
||||||
|
[
|
||||||
"html",
|
"html",
|
||||||
{ name: "svg", encapsulation: "svg" },
|
{ name: "svg", encapsulation: "svg" },
|
||||||
{ name: "css", encapsulation: "style" },
|
{ name: "css", encapsulation: "style" },
|
||||||
],
|
],
|
||||||
|
])
|
||||||
|
),
|
||||||
|
"@polymer/polymer/lib/utils/html-tag.js": ["html"],
|
||||||
},
|
},
|
||||||
strictCSS: true,
|
strictCSS: true,
|
||||||
htmlMinifier: module.exports.htmlMinifierOptions,
|
htmlMinifier: module.exports.htmlMinifierOptions,
|
||||||
failOnError: true, // we can turn this off in case of false positives
|
failOnError: false, // we can turn this off in case of false positives
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// Import helpers and regenerator from runtime package
|
// Import helpers and regenerator from runtime package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user