posthtml / htmlnano

Modular HTML minifier, built on top of the PostHTML

Home Page:https://htmlnano.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we switch off the warning if I'm not using `minifyJs`, please?

frederikhors opened this issue · comments

In my console I'm having this warning:

You have to install "terser" in order to use htmlnano's "minifyJs" module.

I'm not using minifyJs. I'm only using htmlnano like this:

posthtml([htmlnano()])

Can we switch off the warning if I'm not using minifyJs, please?

I'm not using minifyJs. I'm only using htmlnano like this:

By default, htmlnano loads with the safe preset which has minifyJs enabled. You can disable it if you don't need it:

posthtml([htmlnano({
    minifyJs: false,
})])