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 240727a commit 84f3977Copy full SHA for 84f3977
packages/angular_devkit/build_angular/src/utils/index-file/inline-critical-css.ts
@@ -63,7 +63,7 @@ export class InlineCriticalCssProcessor {
63
// Clean up value from value less attributes.
64
// This is caused because parse5 always requires attributes to have a string value.
65
// nomodule="" defer="" -> nomodule defer.
66
- content: content.replace(/(\s[a-z]+)=""/g, '$1'),
+ content: content.replace(/(\s(?:defer|nomodule))=""/g, '$1'),
67
errors: critters.errors,
68
warnings: critters.warnings,
69
};
0 commit comments