Skip to content

ng build production should minify index.html in dist #11360

@CharlBest

Description

@CharlBest

Bug Report or Feature Request (mark with an x)

- [] bug report -> please search issues before submitting
- [x] feature request

Area

- [x] devkit
- [ ] schematics

Versions

node -- version = v8.10.0
node -- version = v5.6.0

Repro steps

ng new proj
cd proj
ng build --prod

The log given by the failure

index.html in dist is not minified

Desired functionality

Minify the index.html in production dist

Mention any other details that might be useful

  • I'm sure it did this in previous versions of the CLI
  • I ran my site through https://developers.google.com/speed/pagespeed/insights and it suggested to minify my HTML. So that's how I ended up here.
    41593038-9e25ca9e-73b6-11e8-861f-a7f8bcff4e0d
  • I'm not sure if this is related to this previous commit (feat(@angular/cli): add support for minifying HTML): 75311c2

PS: it's so cool how so many of these best practices and enhancement the CLI does out of the box for you. Thanks for that!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions