From 741881563777814ccd11894ddc3710c7db1522aa Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 18 Jan 2019 15:17:14 -0600 Subject: [PATCH] Fix some path math on Windows --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index fa5621b23a..9864498229 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -193,7 +193,7 @@ module.exports = { * @return {string} The returned paths will look like `img/warning.1234567.svg`. */ function getImgOutputPath(url, resourcePath) { - const prefix = /^.*\/res\//; + const prefix = /^.*[/\\]res[/\\]/; const outputDir = path.dirname(resourcePath).replace(prefix, ""); return path.join(outputDir, path.basename(url)); }