提交 | 用户 | 时间 | ||
776fbe | 1 | const path = require('path') |
懒 | 2 | const resolve = dir => { |
3 | return path.join(__dirname, dir) | |
4 | } | |
5 | module.exports = { | |
6 | publicPath: './', | |
7 | chainWebpack: config => { | |
8 | config.resolve.alias | |
9 | .set('_c', resolve('src/components')) // key,value自行定义,比如.set('@@', resolve('src/components')) | |
10 | }, | |
11 | } |