Fix config environment bug

This commit is contained in:
sunniejs 2020-12-24 09:24:21 +08:00
parent 19d5f86982
commit c2109f0e78
4 changed files with 4 additions and 6 deletions

View File

@ -3,4 +3,3 @@
// import request from '@/utils/request'
// home api

View File

@ -1,4 +1,4 @@
//根据环境引入不同配置 process.env.NODE_ENV
const environment = process.env.NODE_ENV || 'development'
// 根据环境引入不同配置 process.env.VUE_APP_ENV
const environment = process.env.VUE_APP_ENV || 'production'
const config = require('./env.' + environment)
module.exports = config

View File

@ -8,7 +8,6 @@ const resolve = dir => path.join(__dirname, dir)
const name = defaultSettings.title || 'vue mobile template'
// 生产环境,测试和正式
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
// externals
// const externals = {
// vue: 'Vue',