angular-cli: Angular 6.04 ,building sourceMap cause ng serve slow
Bug Report or Feature Request (mark with an x
)
- [ x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [x ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Angular CLI: 6.1.2 Node: v8.11.3 npm: 6.2.0
Repro steps
### " 92% after chunk asset optimization SourceMapDevToolPlugin main.js generate SourceMap " too slow
After upgrade angular to 6.04, ng serve takes 5 minutes building source map.( SourceMapDevToolPlugin is very slow). Modifying source code take 5 minutes to regenerate source map too.
Is there any way to decrease the time building source map during ng serve ? I don’t want to use --source-map=false option. use --max-old-space-size does not do any help.
The log given by the failure
Desired functionality
Mention any other details that might be useful
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (1 by maintainers)
For us the new webpack-sources update seems to improve the speed:
Initial build is back to the previous performance:
Rebuild is still a bit slower, but I’d say it’s now in the acceptable region:
Also a quick note that 1.2.0 will be the minimum required version in CLI 7.0.
I can also confirm large performance improvement, Updated
package-lock.json
oryarn.lock.json
toversion "1.2.0"
atwebpack-sources
nodeall 6+ angular-cli versions are crashed, fuckin 92% chunk… build 2+ minutes, serve breaks after recompiling, takes 12+ hours on jenkins; but for now using angular cli 1.7.4: webpack: Compiling… Time: 773ms webpack: Compiled successfully.