// @ts-expect-error -- TSCONVERSION I'm not convinced it's correct that for webpack v4 this isn't supposed to be here, although the types do include something similar for WebpackOptionsNormalized which is the options property of Compiler. gonna leave it here until compelled to do otherwise. we can check back later.
devServer:{
host:'localhost',
port: PORT,
publicPath:'/',
hot: true,
disableHostCheck: true,
// This is needed for source-maps to resolve correctly
contentBase:'/',
},
optimization:{
noEmitOnErrors: true,
},
plugins:[
...(baseConfig.plugins||[]),
newLoaderOptionsPlugin({debug: true}),// Legacy global loader option