lumeland / experimental-plugins

A repo to test and experiment with plugins for Lume

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace deprecated minify plugin

jrson83 opened this issue · comments

commented

I really like the possibility to have a all-in-one-minifier-plugin. Since the minifier package has issues, is deprecated/archived and not maintained, I suggest replacing the minify plugin with a new plugin using wilsonzlin/minify-html, which can minify HTML + JS + CSS, has a lot of userOptions, is great maintained, optimized and comes already with Deno/WASM support.

The reason I suggest this, I run into an issue when using the current minify plugin with rehype-prism-plus. It is removing all whitespaces from the <pre> tags:

minifier

minify-html is optimized respecting the tags.

@oscarotero again if this is okay for you, I will create a PR for minify-html plugin.

@jrson83 I didn't know wilsonzlin/minify-html but it looks promising.
Yep, I'm agree with this change, so feel free to create a PR with this.
Thanks!

commented

Closing this, since the plugin has been added.