We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a67099 commit 41ebbb7Copy full SHA for 41ebbb7
src/core/v4.ts
@@ -32,6 +32,11 @@ export class PluginForHtmlWebpackPluginV4 extends BasePlugin {
32
private cssStyleMap: Map<HTMLWebpackPlugin, CSSStyle[]> = new Map()
33
34
private prepareCSSStyle(data: BeforeAssetTagGenerationData) {
35
+ // `prepareCSSStyle` may be called more than once in webpack watch mode.
36
+ // https://github.com/Runjuu/html-inline-css-webpack-plugin/issues/30
37
+ // https://github.com/Runjuu/html-inline-css-webpack-plugin/issues/13
38
+ this.cssStyleMap.clear()
39
+
40
const [...cssAssets] = data.assets.css
41
cssAssets.forEach((cssLink) => {
42
if (this.isCurrentFileNeedsToBeInlined(cssLink)) {
0 commit comments