You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project using lit. In a design system our org makes there's code for sharing styles that when you pass in a selector to apply, returns a css template result. During minfication body's of a selector that gets injected dynamically are removed. I suspect this is might be due to the selector not existing in the template part so maybe its removed under the assumption that the selector wouldn't match anything?
e.g. I would expect
var minifyHtmlLiterals = require("minify-html-literals").minifyHTMLLiterals
minifyHtmlLiterals(`
css\`
foo {
bar: baz;
}
\${unsafeCSS('#foo-id')} {
bar: baz;
}
\`
`).code
I have a project using
lit
. In a design system our org makes there's code for sharing styles that when you pass in a selector to apply, returns acss
template result. During minfication body's of a selector that gets injected dynamically are removed. I suspect this is might be due to the selector not existing in the template part so maybe its removed under the assumption that the selector wouldn't match anything?e.g. I would expect
to produce
but instead i'm getting back
The text was updated successfully, but these errors were encountered: