Open ghost opened 5 years ago
It seems like this project was abandoned. And this commit has break BrowserSync and using webpack-hot-middleware at all.
Finally I found a way. In the vue.config.js you should place
plugins: [ new webpack.HotModuleReplacementPlugin(), ]
@kvakazyambra Invalid options in vue.config.js: "plugins" is not allowed
@Tierey Have you found a solution?
Invalid options in vue.config.js: "plugins" is not allowed
@rvanbaalen Do you use this option properly?
module.exports = {
configureWebpack: (config) => {
return {
plugins: [
new webpack.HotModuleReplacementPlugin()
]
}
}
}
BTW, it works with vue 2.x, not testet with vue 3.
@kvakazyambra Yes, that worked! Your first comment stated 'add plugins
to ...' so that didn't work. This one was very helpful :-)
npm run serve - ok npm run serve:bs - no