Newer
Older
XinYang_SanWei+RongYun / config / prod.env.js
@张强云笔记本 张强云笔记本 on 17 Dec 2021 383 bytes 融云通话接入
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./dev.env')
let params = process.argv[2]
let baseUrl = ''
switch (params) {
  case 'test':
    baseUrl = '"/test"'
    break
  case 'prod':
    baseUrl = '"/api"'
    break
  default:
    baseUrl = '""'
}
module.exports = merge(prodEnv, {
  NODE_ENV: '"production"',
  baseUrl: baseUrl,
  MOCK: 'false'
})