dev.env.js 481 B

1234567891011121314151617181920
  1. 'use strict'
  2. const merge = require('webpack-merge')
  3. const prodEnv = require('./prod.env')
  4. let params = process.argv[4]
  5. let baseUrl = ''
  6. switch (params) {
  7. case '--env=uat':
  8. baseUrl = '"https://uat.jzmall.lifejingzhi.com/wx/"'
  9. break
  10. case '--env=prod':
  11. baseUrl = '"https://jzmall.lifejingzhi.com/wx/"'
  12. break
  13. default:
  14. baseUrl = '"https://uat.jzmall.lifejingzhi.com/wx/"'
  15. }
  16. module.exports = merge(prodEnv, {
  17. NODE_ENV: '"development"',
  18. baseUrl: baseUrl
  19. })