Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d82d0eb commit 90a5531Copy full SHA for 90a5531
packages/angular_devkit/build_angular/src/webpack/plugins/named-chunks-plugin.ts
@@ -26,6 +26,12 @@ export class NamedChunksPlugin {
26
return;
27
}
28
29
+ if ([...chunk.files.values()].every((f) => f.endsWith('.css'))) {
30
+ // If all chunk files are CSS files skip.
31
+ // This happens when using `import('./styles.css')` in a lazy loaded module.
32
+ return undefined;
33
+ }
34
+
35
const name = this.generateName(chunk);
36
if (name) {
37
chunk.name = name;
0 commit comments