Minify HTML literals in js files #6137
-
|
Hello, How to minifi inline HTML in js? There is a plagin https://github.com/rollup/plugins/tree/master/packages/terser. If there is no ready-made plugin for Rollup. Any solution is acceptable. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Did you try https://www.npmjs.com/package/rollup-plugin-html-literals or https://www.npmjs.com/package/@lit-labs/rollup-plugin-minify-html-literals? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @AlexeyBoiko, If you're relying on a mix of CommonJS and ESM plugins, make sure Let me know if you make any progress or if you need another fresh set of eyes on it! |
Beta Was this translation helpful? Give feedback.
Did you try https://www.npmjs.com/package/rollup-plugin-html-literals or https://www.npmjs.com/package/@lit-labs/rollup-plugin-minify-html-literals?