123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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, '../hz_crm_web/index.html'),
- assetsRoot: path.resolve(__dirname, '../hz_crm_web'),
- assetsSubDirectory: 'static',
- assetsPublicPath: './',
- productionSourceMap: false,
-
-
-
-
- productionGzip: true,
- productionGzipExtensions: ['js', 'css'],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- },
- dev: {
-
- env: require('./dev.env'),
- host: 'newadmin.brilliantstart.cn',
- port: 7777,
- autoOpenBrowser: false,
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
- proxyTable:{
- '/adminapi': {
-
-
- target:'http://8.136.199.33:7777',
-
-
- changeOrigin:true,
- pathRewrite:{
- '^/adminapi':'/adminapi'
- },
- }
- },
-
-
-
-
-
- cssSourceMap: false
- },
- test: {
- env: !isPreProduction ? require('./prod.test.env') : require('./prod.pre.env'),
- index: !isPreProduction ? path.resolve(__dirname, '../hz_crm_web/index.html') : path.resolve(__dirname, '../testadmin/index.html') ,
- assetsRoot: !isPreProduction ? path.resolve(__dirname, '../hz_crm_web') : path.resolve(__dirname, '../testadmin'),
- assetsSubDirectory: 'static',
- assetsPublicPath: './',
- productionSourceMap: false,
-
-
-
-
- productionGzip: true,
- productionGzipExtensions: ['js', 'css'],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- }
- }
|