From 5bd1e050fe24f6de5d12f5512ceb47388c20767a Mon Sep 17 00:00:00 2001 From: lotte Date: Thu, 6 Jun 2019 13:55:01 +0200 Subject: [PATCH] solve issue with backslashes in paths --- webpack/helpers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack/helpers.js b/webpack/helpers.js index 8bc12495ce..fafbbaff5e 100644 --- a/webpack/helpers.js +++ b/webpack/helpers.js @@ -80,7 +80,10 @@ const themedTest = (origPath, extension) => { const themedUse = (resource, extension) => { const origPath = path.parse(resource); - const themedPath = getThemedPath(resource, extension); + let themedPath = getThemedPath(resource, extension); + + /* Make sure backslashes are escaped twice, because the replace unescapes those again */ + themedPath = themedPath.replace(/\\/g, '\\\\'); return [ {