devServer: {
historyApiFallback: true,
host: '0.0.0.0',
port: 8989,
compress: true,
noInfo: true,
useLocalIp: true,
hot: true,
open: false
}
"start": "cross-env NODE_ENV=development webpack serve --progress --config webpack.dev.js"
run npm start, hot not working.
Set target: "web" will fix your problem.
module.exports = {
// ...
target: "web"
};
Duplicate of #2758.
Duplicate
Most helpful comment
Set
target: "web"will fix your problem.