From 6a289a1a13078e722932a271d9c4c55f2f554ae0 Mon Sep 17 00:00:00 2001 From: Kevin Malakoff Date: Sat, 3 Jul 2021 20:25:01 -0700 Subject: [PATCH] Fixed check for missing script --- src/HtmlInlineScriptPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HtmlInlineScriptPlugin.ts b/src/HtmlInlineScriptPlugin.ts index c31a9f1..6779b0b 100644 --- a/src/HtmlInlineScriptPlugin.ts +++ b/src/HtmlInlineScriptPlugin.ts @@ -34,7 +34,7 @@ class HtmlInlineScriptPlugin implements WebpackPluginInstance { const asset = assets[scriptName]; - if (!tag) { + if (!asset) { return tag; }