-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
There PRs in the CLI and the nativescript-dev-webpack:
- CLI: Separate native and JS prepare code nativescript-cli#3116
- Webpack: feat: enable plugin to run through {N} CLI hooks nativescript-dev-webpack#299
The implementation splits the "prepare" step into "prepare js" and "prepare native" and allows release builds using the CLI and web pack liketns run ios --bundle --release
.
We basically want to extend this and have it for development builds. We need fast incremental web pack builds.
Problems:
- Switching on/off snapshot may leave artefacts in platforms/..../app that should be cleaned
- These take a lot of time:
- Webpack Bundle Analyzer saved stats file to ./report/stats.json
- Webpack Bundle Analyzer saved report to ./report/report.html
TODO:
- Show messages in TS and SASS plugins when they skip due to --bundle option.
- Show messages in Webpack plugin when rejecting the --env.snapshot option with reasons. Moved to Show messages when rejecting the --env.snapshot option nativescript-dev-webpack#441
- Devise strategy how to handle --bundle option without webpack plugin installed. Currently, build hangs without message.
Resources:
https://github.com/angular/angular/tree/master/packages/compiler-cli
angular/angular#18818
jogboms, sean-perkins, jsaunderson and yyankov