0👍
It not recommend to use data in vue.config.js
directly. If you have some variables based on environment, use Modes and Environment Variables.
- [Vuejs]-Do not update the array value bind with an input field inside vue component
- [Vuejs]-How to merge 2 objects in Laravel and Vue.Js
0👍
Its not recommended method even if you need to do that just try this.
import vueconfig from "./../vue.config.js";
new Vue({
data:{
config
}
})
one thing you remember that we can’t define custom data in vue.config.js
see this , If you want custom config rename the file.
Source:stackexchange.com