1234567891011121314151617181920 |
- 'use strict'
- const merge = require('webpack-merge')
- const prodEnv = require('./prod.env')
- let params = process.argv[4]
- let baseUrl = ''
- switch (params) {
- case '--env=uat':
- baseUrl = '"https://uat.jzmall.lifejingzhi.com/wx/"'
- break
- case '--env=prod':
- baseUrl = '"https://jzmall.lifejingzhi.com/wx/"'
- break
- default:
- baseUrl = '"https://uat.jzmall.lifejingzhi.com/wx/"'
- }
- module.exports = merge(prodEnv, {
- NODE_ENV: '"development"',
- baseUrl: baseUrl
- })
|