|
@@ -1,24 +1,30 @@
|
|
|
|
|
|
module.exports = {
|
|
|
- outputDir:"yos",
|
|
|
- lintOnSave: false,
|
|
|
- productionSourceMap:false,
|
|
|
- publicPath: './',
|
|
|
- devServer: {
|
|
|
- open: true,
|
|
|
- // host: '192.168.4.170',
|
|
|
- host: 'localhost',
|
|
|
- port: 8080,
|
|
|
- proxy: {
|
|
|
- '/apis': {
|
|
|
- // target: 'http://121.37.152.76:8080', // target host
|
|
|
- target: 'https://meida.cnyunl.com',
|
|
|
- ws: true, // proxy websockets
|
|
|
- changeOrigin: true, // needed for virtual hosted sites
|
|
|
- pathRewrite: {
|
|
|
- '^/apis': '' // rewrite path
|
|
|
- }
|
|
|
- },
|
|
|
- }
|
|
|
+ outputDir:"yos",
|
|
|
+ lintOnSave: false,
|
|
|
+ productionSourceMap:false,
|
|
|
+ publicPath: './',
|
|
|
+ devServer: {
|
|
|
+ open: true,
|
|
|
+ // host: '192.168.4.170',
|
|
|
+ host: 'localhost',
|
|
|
+ port: 8080,
|
|
|
+ proxy: {
|
|
|
+ '/apis': {
|
|
|
+ // target: 'http://121.37.152.76:8080', // target host
|
|
|
+ target: 'https://meida.cnyunl.com',
|
|
|
+ ws: true, // proxy websockets
|
|
|
+ changeOrigin: true, // needed for virtual hosted sites
|
|
|
+ pathRewrite: {
|
|
|
+ '^/apis': '' // rewrite path
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
+ },
|
|
|
+ chainWebpack(config) {
|
|
|
+ config.plugin('html').tap((args) => { //标题
|
|
|
+ args[0].title = '美大营销管理平台';
|
|
|
+ return args;
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|