0👍
Vue-CLI automatically sets webpackPrefetch: true
for all lazy-loaded components. I do not know how you can conditionally turn it on/off so in my projects I am turning it off completely:
// vue.config.js
chainWebpack: config =>
{
config.plugins.delete('prefetch'); // for async routes
config.plugins.delete('preload'); // for CSS
}
- [Vuejs]-How to send input data value from child component data object to parent?
- [Vuejs]-If input is CHECKED button ENABLE VUE JS
Source:stackexchange.com