rollup-plugin-minify-html-literals icon indicating copy to clipboard operation
rollup-plugin-minify-html-literals copied to clipboard

Rollup plugin to minify HTML template literal strings

Results 13 rollup-plugin-minify-html-literals issues
Sort by recently updated
recently updated
newest added

```js import minifyHTML from 'rollup-plugin-minify-html-literals'; const bundle = await rollup.rollup({ input: `${roots.js}/src/components/**/*.ts`, output: { file: out, format: "es", sourcemap: true }, plugins: [ multi(), resolve(), minifyHTML(), esbuild({ tsconfig: "./tsconfig.json", minify:...

Using these versions: + "rollup-plugin-minify-html-literals": "^1.2.6" + "rollup": "^2.51.2" there is a warning on the output and it looks like the template literals are not parsed: `(!) Plugin minify-html-literals: result.matchAll...

When running the plugin on template literals which don’t have a wrapping `` tag, the minification does not work unless the tags in question are explicitely allowed through a custom...

input ```html html` --red: ${red}; --blue: ${blue}; --green: ${green}; ` ``` expecting output to be ```html `--red:${red};--blue:${blue};--green:${green};` ``` instead got ```html `--red:${red}--blue:${blue}--green:${green}` ```

Fails with this message: > (!) Plugin minify-html-literals: splitHTMLByPlaceholder() must return same number of strings as template parts in.js: ```js let a = 5; html` `; ``` rollup.config.js: ```js import...

I want to use css preprocessor, therefore I have to use custom minifier function, where the last call would be to `minify.minifyHTMLLiterals`. How about making a special function, that accepts...

Currently dependency doesn't allow working with rollup 3. I don't know if code must be changed too.

Hi, when minify a css string with @container rules, the output is not correct and the container queries will not work anymore

Changes --------- - All dev dependencies raised to latest versions. - Added rollup ^4.0.0 as a supported peer dependency. - Fixed typing errors in test. - Added myself as contributor...

According to [Lit docs](https://lit.dev/docs/tools/production/#modern-only-build) this package should be installed. But installation just fails: `$ npm i --save-dev rollup-plugin-minify-html-literals` Result: ``` npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve...