Skip to content

Support --output-hashing for serve command #11852

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

Closed
dinony opened this issue Aug 10, 2018 · 2 comments
Closed

Support --output-hashing for serve command #11852

dinony opened this issue Aug 10, 2018 · 2 comments

Comments

@dinony
Copy link

dinony commented Aug 10, 2018

Bug Report or Feature Request (mark with an x)

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

Command (mark with an x)

- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Desired functionality

build supports --prod and --output-hashing flags. It would be great if we could use the same flags for serve.

E.g.
ng serve --prod --output-hashing none

Also see issue.

@filipesilva
Copy link
Contributor

ng serve --prod is already supported, and uses the production configuration in this target:

        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "latest-project:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "latest-project:build:production"
            }
          }
        },

The production configuration here says "use the production build options", which already includes all the production settings like output hashing.

If you have a custom configuration of options you need to use for building, you can add it as a new configuration inside the build target, then point at it from your serve target.

@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 Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants