Skip to content

Commit

Permalink
Update Webpack devServer config for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Oct 23, 2024
1 parent d7004eb commit ff1a0bb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ const webpackConfig = (environment, argv) => {
compress: true,
host: '0.0.0.0',
port: 3000,
proxy: {
context: () => true,
target: 'http://localhost:8000',
},
proxy: [
{
context: () => true,
target: 'http://localhost:8000',
},
],
client: {
logging: 'error',
// Shows a full-screen overlay in the browser when there are compiler errors.
Expand All @@ -158,7 +160,7 @@ const webpackConfig = (environment, argv) => {
// Write compiled files to disk. This makes live-reload work on both port 3000 and 8000.
writeToDisk: true,
stats,
index: '',
index: false,
publicPath: '/static/',
},
};
Expand Down

0 comments on commit ff1a0bb

Please sign in to comment.