Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minify index.html on build --prod #1861

Closed
ghost opened this issue Aug 28, 2016 · 14 comments
Closed

Minify index.html on build --prod #1861

ghost opened this issue Aug 28, 2016 · 14 comments
Assignees
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion

Comments

@ghost
Copy link

ghost commented Aug 28, 2016

  1. Any project, run ng build --prod

It does not minify index.html

@filipesilva filipesilva added type: enhancement P5 The team acknowledges the request but does not plan to address it, it remains open for discussion labels Sep 20, 2016
@vitthalr
Copy link

vitthalr commented Jan 4, 2017

Any update on this?

@Fajkowsky
Copy link

Is there chance to minify html?

@e-oz
Copy link

e-oz commented Jun 12, 2017

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

@alexciesielski
Copy link

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

@filipesilva
Copy link
Contributor

@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.

@e-oz
Copy link

e-oz commented Jun 12, 2017 via email

dond2clouds pushed a commit to d2clouds/speedray-cli that referenced this issue Apr 23, 2018
@jkevingutierrez
Copy link

jkevingutierrez commented May 19, 2018

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
Copy link

odahcam commented Jan 8, 2019

It was closed because of this commit 75311c2

@RinMinase
Copy link

@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.

@odahcam
Copy link

odahcam commented Feb 8, 2019

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.

@alaboudi
Copy link

@odahcam I agree. It should be.

@filipesilva thoughts?

@MilesBHuff
Copy link

MilesBHuff commented Feb 13, 2020

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

@MilanObrenovic
Copy link

Any updates on this?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion
Projects
None yet
Development

No branches or pull requests