You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
321 B
12 lines
321 B
const path = require('path')
|
|
const resolve = dir => {
|
|
return path.join(__dirname, dir)
|
|
}
|
|
module.exports = {
|
|
// open: true,
|
|
publicPath: './',
|
|
chainWebpack: config => {
|
|
config.resolve.alias
|
|
.set('_c', resolve('src/components')) // key,value自行定义,比如.set('@@', resolve('src/components'))
|
|
},
|
|
}
|