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

Request: ng add use devDependencies #47

Open
lacolaco opened this issue Dec 22, 2018 · 3 comments
Open

Request: ng add use devDependencies #47

lacolaco opened this issue Dec 22, 2018 · 3 comments

Comments

@lacolaco
Copy link

Currently, ng add ngx-build-plus command adds ngx-build-plus package into dependencies in package.json.

I think it will be better that adds it into devDependencies because ngx-build-plus is not needed in runtime.

@manfredsteyer
Copy link
Owner

+1 -- do you know, is there a way to tell ng add that a lib shall be added to the devDependencies?

@simbo
Copy link

simbo commented Jan 10, 2019

workaround:

yarn add -D ngx-build-plus
ng add ngx-build-plus

@lacolaco
Copy link
Author

lacolaco commented Nov 2, 2019

@manfredsteyer
angular/angular-cli#15815

From v9, ng-add supports adding a package to devDependencies.
🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants