Skip to content

Commit

Permalink
fix: file-loader name for windows execution (#9575)
Browse files Browse the repository at this point in the history
Windows file path separator \ should not
be used as it will result in %0B when it should
be /
  • Loading branch information
caalador authored and taefi committed Mar 2, 2021
1 parent 6bbd827 commit 9cc9b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow-server/src/main/resources/webpack.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ module.exports = {
name(resourcePath, resourceQuery) {
const urlResource = resourcePath.substring(frontendFolder.length);
if(urlResource.match(themePartRegex)){
return /^(\\|\/)theme\1[\s\S]*?\1(.*)/.exec(urlResource)[2];
return /^(\\|\/)theme\1[\s\S]*?\1(.*)/.exec(urlResource)[2].replace(/\\/, "/");
}
return '[path][name].[ext]';
}
Expand Down

0 comments on commit 9cc9b46

Please sign in to comment.