1
yangpeixing
17 小时以前 4f0b7cdf7ce4f18f75e30b4e7dc03ffc9510388e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const path = require('path')
const resolve = dir => {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: './',
  devServer:{
    host:'0.0.0.0',
    port:8090
  },
  chainWebpack: config => {
    config.resolve.alias
      .set('_c', resolve('src/components')) // key,value自行定义,比如.set('@@', resolve('src/components'))
  },
  lintOnSave: false
}