const path = require('path'); function resolve(dir) { return path.join(__dirname, dir); } module.exports = { devServer: { overlay: { warnings: false, errors: false }, /* proxy: { '/api': { target: 'http://plat.yjyculture.com/C/', changeOrigin: true, pathRewrite: { '^/api': '' } }, } */ }, lintOnSave: false, chainWebpack: (config) => { config.resolve.alias .set('@', resolve('src')) } }