Open lspohn opened 5 years ago
same this
Additional info:
I added a line like this for each css file:
if (module.hot) module.hot.accept(['../../node_modules/vuetify/dist/vuetify.min.css'], () => {})
HMR does not perform any full reload now. But: Changes are not visible! Console shows "App hot update" and a lot of updates .vue Files but changes in the source code are only visible after reload via CTRL+R.
Any ideas?
This bug makes developing really nasty for me.
PS: Issue happens with stock electron-webpack-quick-start, too:
@lspohn I moved my project to Vue ui and i install plugin vue-cli-plugin-electron-builder . HMR work perfect
@lspohn and I have solved this problem by whitelisting the following packages from HMR (in package.json):
"whiteListedModules": [ "vuetify", "material-design-icons-iconfont", "typeface-roboto", "typeface-source-sans-pro" ]
For us, this issue can be closed. Thanks!
Hi guys,
I set up a project using electron-webpack using Vue.
HMR is enabled but I always get this error:
Happens with any other CSS file, too.
I tried to add "if (module.hot) module.hot.accept()" in my renderer/index.js, and then HMR doesn't do a full reload, but changes in my templates during runtime are not adopted anyway.
Any ideas?