Skip to content

Commit

Permalink
Merge pull request #399 from thornbill/fix-dev-server
Browse files Browse the repository at this point in the history
Fix dev server config
  • Loading branch information
nielsvanvelzen authored Mar 29, 2023
2 parents 352ebe4 + 4e2d071 commit 544d642
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const common: webpack.Configuration = {
output: {
filename: '[name].[fullhash].js',
path: path.resolve(__dirname, 'dist'),
publicPath: './'
publicPath: ''
},
plugins: [
// @ts-expect-error - Typings mismatch between versions
Expand Down Expand Up @@ -69,11 +69,9 @@ const development: webpack.Configuration = {
// @ts-expect-error - Typings mismatch between versions
devServer: {
compress: true,
contentBase: path.join(__dirname, 'dist'),
port: process.env.RECEIVER_PORT
? Number.parseInt(process.env.RECEIVER_PORT, 10)
: 9000,
publicPath: '/'
: 9000
},
devtool: 'inline-source-map',
mode: 'development',
Expand Down

0 comments on commit 544d642

Please sign in to comment.