module.exports = { chainWebpack: config => { config .plugin('html') .tap(args => { args[0].title = '退役军人' return args }) }, outputDir: 'dist', assetsDir: 'static', css: { loaderOptions: { sass: { // 全局引入变量和 mixin prependData: ` @import "@/assets/scss/variable.scss"; @import "@/assets/scss/mixin.scss"; ` } } }, devServer: { proxy: { [process.env.VUE_APP_BASE_API]: { target: `http://wx.dev.dazesoft.cn/veterans/company/`, // target: `http://172.16.90.64:7200/company/`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' } } }, disableHostCheck: true }, productionSourceMap: false, publicPath: process.env.NODE_ENV === 'production' ? '/' : '/' }