[Vuejs]-Vue baseUrl set in vue-router base

5👍

vue.config.js is just an exported object. There should be no problem in importing this object in your own code to read the baseUrl:

import { baseUrl } from './vue.config.js'

console.log(baseUrl);

Leave a comment