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 156f34b commit d60c640Copy full SHA for d60c640
src/HtmlInlineScriptPlugin.ts
@@ -64,14 +64,13 @@ class HtmlInlineScriptPlugin {
64
);
65
return data;
66
});
67
+ });
68
- hooks.beforeEmit.tap(`${PLUGIN_PREFIX}_beforeEmit`, (data) => {
69
- Object.keys(compilation.assets).forEach((assetName) => {
70
- if (this.isFileNeedsToBeInlined(assetName)) {
71
- delete compilation.assets[assetName];
72
- }
73
- });
74
- return data;
+ compiler.hooks.emit.tap(`${PLUGIN_PREFIX}_emit`, (compilation) => {
+ Object.keys(compilation.assets).forEach((assetName) => {
+ if (this.isFileNeedsToBeInlined(assetName)) {
+ delete compilation.assets[assetName];
+ }
75
76
77
}
0 commit comments