Fix dev server config

This commit is contained in:
Bill Thornton 2023-03-29 14:37:13 -04:00
parent 352ebe419b
commit 4e2d071fb6

View File

@ -31,7 +31,7 @@ const common: webpack.Configuration = {
output: { output: {
filename: '[name].[fullhash].js', filename: '[name].[fullhash].js',
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
publicPath: './' publicPath: ''
}, },
plugins: [ plugins: [
// @ts-expect-error - Typings mismatch between versions // @ts-expect-error - Typings mismatch between versions
@ -69,11 +69,9 @@ const development: webpack.Configuration = {
// @ts-expect-error - Typings mismatch between versions // @ts-expect-error - Typings mismatch between versions
devServer: { devServer: {
compress: true, compress: true,
contentBase: path.join(__dirname, 'dist'),
port: process.env.RECEIVER_PORT port: process.env.RECEIVER_PORT
? Number.parseInt(process.env.RECEIVER_PORT, 10) ? Number.parseInt(process.env.RECEIVER_PORT, 10)
: 9000, : 9000
publicPath: '/'
}, },
devtool: 'inline-source-map', devtool: 'inline-source-map',
mode: 'development', mode: 'development',