Browse Source

Fix some path math on Windows

pull/8166/head
J. Ryan Stinnett 3 years ago
parent
commit
7418815637
  1. 2
      webpack.config.js

2
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));
}

Loading…
Cancel
Save