I noticed what whitespaces in generated html were removed, but I wanted them to be. I found what it is because of html-minify config passed to nuxt.generate here.
I think it would be great if we can specify minification config for generation. What do you think?
Thanks for nuxt.
I also can start working on pull request for this in case you think it is a good idea.
I also some problem with HTML minify
I am try to fix my HTML vue
Sure, a PR is always welcome 馃憤
It could be in the nuxt.config.js in generate.minify which will be an object.
It's implemented in the 0.10, see https://nuxtjs.org/api/configuration-generate#minify
@Atinux wow, thank you so much :)
I'm wondering why we can easily adjust the minification config of generate but not of any other build? Why is this not applicable to Nuxt in general?
Really, all I want to do is remove comments from HTML.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Sure, a PR is always welcome 馃憤
It could be in the
nuxt.config.jsingenerate.minifywhich will be an object.