From 7561a8533130e48e5646f385cd6afe47a18f484c Mon Sep 17 00:00:00 2001 From: Michael Dietiker <44356685+michaeldietiker@users.noreply.github.com> Date: Wed, 4 Nov 2020 15:43:51 +0100 Subject: [PATCH] Enable html-webpack-plugin inject: false option --- src/lib/insert-links-into-head.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/insert-links-into-head.js b/src/lib/insert-links-into-head.js index 9db83fa..abc4cc8 100644 --- a/src/lib/insert-links-into-head.js +++ b/src/lib/insert-links-into-head.js @@ -30,7 +30,7 @@ function insertLinksIntoHead({html, links=[]}) { return html.replace('', `${links.join('')}\n`); } - throw new Error(`The HTML provided did not contain a or a :\n\n${html}`); + return links.join('') + html; } module.exports = insertLinksIntoHead;