-
Notifications
You must be signed in to change notification settings - Fork 12k
Production build doesn't hook up JS and JS.MAP files #1832
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
Comments
Prod mode bundles according to your SystemJS config. If there are missing files there, it's probably because there's not listed in that config as a global library. The difficulty in correctly configuring everything for bundling was part of the reason that lead us to move to webpack (#1455). You can upgrade using these instructions: https://github.com/angular/angular-cli#webpack-preview-release-update Bear in mind though, that the latest webpack release doesn't yet allow you to import global libraries but will soon. |
@filipesilva until it does allow you to import global libraries, what's the fix for this? We are seeing JS files being left out of
and
using:
|
We've now released webpack to latest, including this functionality. See https://github.com/angular/angular-cli#webpack-update to update. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Tried to build prod version with
ng build --prod
but faced with an issue - it hooked upcss
andcss.map
files, that wrote in myangular-cli-build.js
, but ignored.js
and.js.map
files at all exept defaults, such aszone.js
, etc.When I execute
ng build
- all works fine. It hooked up all files, includejs
andjs.map
.My
angular-cli-build.js
:The text was updated successfully, but these errors were encountered: