0👍
✅
As indicated in the GitHub link you mentioned, the solution is to configure Webpack via the vue.config.js
, which is an optional file in a Vue CLI project. That file is omitted by default, so you would have to create the file if it doesn’t exist.
From the Vue CLI docs:
vue.config.js
is an optional config file that will be automatically loaded by@vue/cli-service
if it’s present in your project root (next topackage.json
). You can also use thevue
field inpackage.json
, but do note in that case you will be limited to JSON-compatible values only.
0👍
try
new Vue({
router,
store,
apolloProvider,
render: h => h(App)
}).$mount('#app')
Source:stackexchange.com