Angular-cli: Minify index.html on build --prod

Created on 28 Aug 2016  Â·  13Comments  Â·  Source: angular/angular-cli

  1. Any project, run ng build --prod

It does not minify index.html

3 (nice to have)

Most helpful comment

Why this issue was closed? Is there any option to minify index.html? It would be great to have an option like "extractCss" to enabled/disabled minify index.html

All 13 comments

Any update on this?

Is there chance to minify html?

Please add an option to turn off HTML minification. Or, at least, whitespace collapsing.

Does this minify all angular templates or just index.html?

@e-oz is this change breaking something in your project? Can you open a new issue with a description of what's happening please?

@ciesielskico just index.html minification.

if it's only for index.html - no, nothing critical :)
On Mon, 12 Jun 2017 at 12:40, Filipe Silva notifications@github.com wrote:

@e-oz https://github.com/e-oz is this change breaking something in your
project? Can you open a new issue with a description of what's happening
please?

@ciesielskico https://github.com/ciesielskico just index.html
minification.

—
You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/1861#issuecomment-307753544,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgIEO9IBj4v98jGm5l8ihw3W00oSpJ1ks5sDRWAgaJpZM4Ju05w
.

Why this issue was closed? Is there any option to minify index.html? It would be great to have an option like "extractCss" to enabled/disabled minify index.html

@odahcam This feature was removed on Angular 6+ based on the comments noted on the commit you have linked.

So index.html file in Angular 6+ is still not minified. I am currently using Angular v7.2.4, and index.html on --prod does not minify it.

Absolutely right, I read the comments too, I just wanted to give a direct and simple answer to the previous comment. Maybe this issue should be reopened.

@odahcam I agree. It should be.

@filipesilva thoughts?

11360 is the same issue, and it's still open, in case you guys want to move there.

Any updates on this?

Was this page helpful?
0 / 5 - 0 ratings