Nuxt.js: [Feature Request] Allow to specify html minifier config for nuxt.generate

Created on 18 Mar 2017  路  7Comments  路  Source: nuxt/nuxt.js

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.

This feature request is available on Nuxt.js community (#c343)

Most helpful comment

Sure, a PR is always welcome 馃憤

It could be in the nuxt.config.js in generate.minify which will be an object.

All 7 comments

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.

Was this page helpful?
0 / 5 - 0 ratings