vue.config.js
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
configureWebpack:{
resolve:{
alias:{
'views':'@/views',
'assets':'@/assets',
'commonjs':'@/commonjs',
'components':'@/components',
'common':'components/common',
'content':'components/content',
'network':'@/network',
'router':'@/router',
'store':'@/store'
}
}
}
})
jsconfig.json
{
"compilerOptions": {
"experimentalDecorators": true,
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
],
"assets/*":["src/assets/*"],
"commonjs/*":["src/commonjs/*"],
"components/*": [
"src/components/*",
],
"common/*":["src/components/common/*"],
"content/*":["src/components/content/*"],
"network/*":["src/network/*"],
"router/*":["src/router/*"],
"store/*":["src/store/*"],
"views/*":["src/views/*"],
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}