Minifiy HTML and CSS #11185
Replies: 2 comments
-
We should take inspiration from open-wc: https://github.com/open-wc/open-wc/blob/master/packages/building-rollup/modern-config.js#L61 |
Beta Was this translation helpful? Give feedback.
-
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Beta Was this translation helpful? Give feedback.
-
Home Assistant 0.99
Right now we use
terser
for minification. Terser does not understand ourhtml
andcss
tags as used by Lit, and therefore leaves those pieces of code untouched.If we would switch to
babel-minify
as our minifier we can use babel-plugin-template-html-minifier which is able to minify CSS and HTML.This issue is not a prioritiy, just wanted to have it written up so we don't forget.
Beta Was this translation helpful? Give feedback.
All reactions