// vue.config.js
const path = require('path')
module.exports = {
chainWebpack: config => {
config.resolve.alias
.set('@', path.join(__dirname, 'src'))
.set('components', path.join(__dirname, 'src/components'))
.set('views', path.join(__dirname, 'src/views'))
.set('assets', path.join(__dirname, 'src/assets'))
}
}
© 2020 飞鱼的博客