From 4b6372700611eb1536b9dfcd94c8fad0ba8cb810 Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Tue, 2 Jun 2020 14:30:57 +0200 Subject: [PATCH] Fixed Webpack config to allow multiple asset replacements (#1739) * Allow multiple template replacements * double quotes! --- webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index 2613224d1..733d01753 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -304,7 +304,7 @@ export default (_env: never, args: Configuration): Configuration[] => { const manifest = require("./material/assets/manifest.json") const template = toPairs(manifest) .reduce((content, [from, to]) => { - return content.replace(from, to) + return content.replace(new RegExp(from, "g"), to) }, fs.readFileSync("material/base.html", "utf8")) /* Save template with replaced assets */