Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Merge fix/windows_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Lenzotti committed Sep 11, 2018
2 parents 97d91e5 + 72d1420 commit f5fd133
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/cli-plugin-fractal/src/middlewares/proxy-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ const proxy = require('http-proxy-middleware');

module.exports = (config, { host, port }) =>
proxy(
config.fractal.proxyPatterns.concat([
'**/sockjs-node/**',
'/**.hot-update.json',
'/**.hot-update.js',
'/**.hot-update.js.map',
'ws://**'
]),
config.fractal.proxyPatterns
.concat(['**/sockjs-node/**', '/**.hot-update.json', '/**.hot-update.js', '/**.hot-update.js.map', 'ws://**'])
.map(s => s.replace(/\\/gi, '/')),
{
target: `http://${host || 'localhost'}:${port}`,
ws: true,
Expand Down

0 comments on commit f5fd133

Please sign in to comment.