vue.config.js 配置 别名(alias)
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
configureWebpack: {
resolve: {
alias: {
'@': resolve('src'),
'@api': resolve('src/api/models'),
'@style': resolve('src/assets/less')
}
}
}
}
A little hug, little gift.
All of little something.
these are our meories.