Skip to content

Commit

Permalink
fix(dev-server): fix wrong path and url comparison on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
isjaki committed Dec 17, 2020
1 parent c24ea5e commit d488311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/arui-scripts/src/configs/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const devServerConfig = applyOverrides<Configuration>('devServer', {
'/**': {
target: `http://localhost:${configs.serverPort}`,
bypass: (req: http.IncomingMessage) => {
const assetsRoot = path.resolve(`/${configs.publicPath}`);
const assetsRoot = path.normalize(`/${configs.publicPath}`).replace(/\\/g, '/');

if (req?.url?.startsWith(assetsRoot)) {
return req.url;
Expand Down

0 comments on commit d488311

Please sign in to comment.