In the quasar.conf.js
file, you need to add watchOptions
in devServer
to make hotreload work properly:
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer: {
https: false,
port: 8080,
open: false, // we cannot open browser window on headless vagrant
watchOptions: {
aggregateTimeout: 100,
poll: 1000
}
},
You can play around with aggregateTimeout
and poll
but if you set them too low then the browser will just constantly refresh.