Chunks are not getting generated with @ngtools/webpack
See original GitHub issueVersions
Angular CLI: 1.5.0
Node: 6.10.1
Angular 5
@ngtools/webpack version: 1.8.2
Webpack.common.js module: { rules: [{ loader: ‘@ngtools/webpack’, options: { configFileName: ‘tsconfig.webpack.json’, } }], plugins: [{ new AngularCompilerPlugin({ “sourceMap”: true, “tsConfigPath”: helpers.root(‘tsconfig.webpack.json’), “skipCodeGeneration”: true, “compilerOptions”: {} }), }] } Actual result: Chunks is not getting generated for lazy loaded modules Expected Result: Should generate chunks
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Angular lazy loading not working in webpack with @ngtools ...
Lazy module is eagerly loading, No separate chunks created for lazy modules. I created a repo to reproduce the issue.
Read more >@ngtools/webpack | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >angular-named-lazy-chunks-webpack-plugin - npm package
Webpack plugin that assigns names to the async chunks generated for lazy routes in an Angular app. For more information about how to...
Read more >Angular Ahead-of-Time Webpack Plugin - npm
Webpack plugin that AoT compiles your Angular components and modules.. Latest version: 15.0.3, last published: a day ago.
Read more >Under The Hood - webpack
Initial chunk with name main is created. It contains: ./src/index.jsx; react; react-dom. and all their dependencies ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There was a similar issue (https://github.com/angular/angular-cli/issues/8597) where the problem was
ContextReplacementPlugin
. If that’s not the problem in your case, could you set up a repro that I can clone to see the problem please?@EmaGht the
@ngtools/webpack
plugin is unfortunately not compatible with the DLLPlugin: https://github.com/angular/angular-cli/issues/4565