Skip to content

Commit

Permalink
Merge pull request #4262 from onursumer/fix-dev-public-path
Browse files Browse the repository at this point in the history
Allow dev server to run on different ports than 3000
  • Loading branch information
inodb authored May 19, 2022
2 parents 7fed092 + be4491b commit fc7e489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ if (isDev || isTest) {

// force hot module reloader to hit absolute path so it can load
// from dev server
config.output.publicPath = '//localhost:3000/';
config.output.publicPath = `//localhost:${devPort}/`;
} else {
config.output.publicPath = '/';

Expand Down

0 comments on commit fc7e489

Please sign in to comment.