module.exports = {
publicPath: "/",
assetsDir: "static",
productionSourceMap: process.env.NODE_ENV !== "production",
outputDir: "dist",
devServer: {
host: "localhost",
open: true,
port: 5001,
proxy: {
"^/": {
target: process.env.VUE_APP_API_ROOT,
ws: true,
changeOrigin: true,
pathRewrite: {
"^/api": "/api"
},
cookieDomainRewrite: "localhost"
}
}
}
};
网友评论