Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Commit 704a528

Browse files
authored
I did not test this though copied things.
1 parent c1457d2 commit 704a528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ HtmlWebpackMultiBuildPlugin.prototype = {
2525
},
2626

2727
beforeHtmlGeneration: function(data, cb) {
28+
this.clearOldScripts(data);
2829
this.js = this.js.concat(data.assets.js);
2930
data.assets.js = this.js;
3031
data.plugin.options.modernScripts = this.js.filter((value) => value.indexOf('legacy') === -1);
@@ -48,7 +49,6 @@ HtmlWebpackMultiBuildPlugin.prototype = {
4849
}
4950
},
5051
clearOldScripts: function(data) {
51-
this.clearOldScripts(data);
5252
this.outputFileNameRegex.forEach(r => {
5353
data.assets.js.forEach(a => {
5454
// we have one of our entries

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /