module.exports = { publicPath: process.env.NODE_ENV === 'production' ? '/pipesu' : '/', // publicPath: process.env.NODE_ENV === 'production' ? '/pipe' : '/', devServer: { proxy: { '/suapi': { target: process.env.VUE_APP_BASE_URL, ws: true, changeOrigin: true, pathRewrite: { '^/suapi': '' //路径重写 } }, } }, chainWebpack: config => { config .plugin('html') .tap(args => { args[0].title= '面向现代制造的混凝土管片智慧工厂' return args }) } }