vue.config.js文件配置
module.exports = {
//配置路径别名
publicPath: "./",
configureWebpack: {
resolve: {
alias: {
assets: "@/assets",
components: "@/components",
network: "@network",
utils: "@/utils",
views: "@/views",
},
},
},
}
使用
import { SupTopUI } from '@/components/component_module/index.js'