manfredsteyer / ngx-build-plus

Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k stars 136 forks source link

Request: `ng add` use devDependencies #47

Open lacolaco opened 5 years ago

lacolaco commented 5 years ago

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 commented 5 years ago

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

simbo commented 5 years ago

workaround:

yarn add -D ngx-build-plus
ng add ngx-build-plus
lacolaco commented 5 years ago

@manfredsteyer https://github.com/angular/angular-cli/pull/15815

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