huangxiaoqiang
2025-04-21 511560d9249cf302c837fcbb4d93645af184d69e
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
}