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 78a180b commit e502f52Copy full SHA for e502f52
packages/@angular/cli/plugins/suppress-entry-chunks-webpack-plugin.ts
@@ -42,7 +42,7 @@ export class SuppressExtractedTextChunksWebpackPlugin {
42
compilation.plugin('html-webpack-plugin-alter-asset-tags',
43
(htmlPluginData: any, callback: any) => {
44
const filterFn = (tag: any) =>
45
- !(tag.tagName === 'script' && tag.attributes.src.match(/\.css$/));
+ !(tag.tagName === 'script' && tag.attributes.src && tag.attributes.src.match(/\.css$/));
46
htmlPluginData.head = htmlPluginData.head.filter(filterFn);
47
htmlPluginData.body = htmlPluginData.body.filter(filterFn);
48
callback(null, htmlPluginData);
0 commit comments