12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- var path = require('path')
- var argv = process.argv.slice(2);
- var isPreProduction = argv.indexOf('preProduction') !== -1;
- console.log(argv,isPreProduction);
- module.exports = {
- build: {
- env: require('./prod.env'),
- index: path.resolve(__dirname, '../eta_front/index.html'),
- assetsRoot: path.resolve(__dirname, '../eta_front'),
- assetsSubDirectory: 'static',
- assetsPublicPath: process.env.VUE_APP_BASE_URL,
- productionSourceMap: false,
-
-
-
-
- productionGzip: true,
- productionGzipExtensions: ['js', 'css'],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- },
- dev: {
-
- env: require('./dev.env'),
- host: 'newadmin.brilliantstart.cn',
- port: '3033',
- autoOpenBrowser: false,
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
- proxyTable:{
- '/adminapi': {
- target: "http://gneta.hzinsights.com/ybeta",
-
-
- changeOrigin:true,
- pathRewrite:{
- '^/adminapi':'/adminapi'
- },
- }
- },
-
-
-
-
-
- cssSourceMap: false
- },
- test: {
- env: !isPreProduction ? require('./prod.test.env') : require('./prod.pre.env'),
- index: !isPreProduction ? path.resolve(__dirname, '../eta_front/index.html') : path.resolve(__dirname, '../eta_front/index.html') ,
- assetsRoot: !isPreProduction ? path.resolve(__dirname, '../eta_front') : path.resolve(__dirname, '../eta_front'),
- assetsSubDirectory: 'static',
- assetsPublicPath: process.env.VUE_APP_BASE_URL,
- productionSourceMap: false,
-
-
-
-
- productionGzip: true,
- productionGzipExtensions: ['js', 'css'],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- }
- }
|