I'm not sure what's happening in the the plugin but the collapseWhitespace option is being set to true even when it's not set at all and the default being false, as seen here in the docs for html-minifier.
I tried a couple of ways to prevent it returning true without luck, next best thing was to explicitly apply it and allow plugin users to overwrite it with the minifierOptions key in their netlify.toml file.
I'm hoping this will fix #13 #15 and #18. This issue has come up enough that I think it justifies being the default.
I'm not sure what's happening in the the plugin but the
collapseWhitespace
option is being set totrue
even when it's not set at all and the default beingfalse
, as seen here in the docs forhtml-minifier
.I tried a couple of ways to prevent it returning true without luck, next best thing was to explicitly apply it and allow plugin users to overwrite it with the
minifierOptions
key in theirnetlify.toml
file.I'm hoping this will fix #13 #15 and #18. This issue has come up enough that I think it justifies being the default.