mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-09-11 05:15:58 +08:00
更新config
This commit is contained in:
parent
3114e842ac
commit
ccf0ad30f6
@ -2,7 +2,7 @@ NODE_ENV='production'
|
|||||||
# must start with VUE_APP_
|
# must start with VUE_APP_
|
||||||
VUE_APP_ENV = 'production'
|
VUE_APP_ENV = 'production'
|
||||||
#base url
|
#base url
|
||||||
BASE_URL = https://www.top1buyer.com/
|
BASE_URL = 'https://www.xxx.com/'
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = '/prod-api'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
|
|
||||||
|
@ -2,8 +2,7 @@ NODE_ENV='production'
|
|||||||
# must start with VUE_APP_
|
# must start with VUE_APP_
|
||||||
VUE_APP_ENV = 'staging'
|
VUE_APP_ENV = 'staging'
|
||||||
#base url
|
#base url
|
||||||
#base url
|
BASE_URL = 'https://www.xxx.com/'
|
||||||
BASE_URL = https://www.top1buyer.com/
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = '/stage-api'
|
VUE_APP_BASE_API = '/stage-api'
|
||||||
|
|
||||||
|
@ -12,17 +12,14 @@ const externals = {
|
|||||||
'vue-router': 'VueRouter',
|
'vue-router': 'VueRouter',
|
||||||
vuex: 'Vuex',
|
vuex: 'Vuex',
|
||||||
vant: 'vant',
|
vant: 'vant',
|
||||||
axios: 'axios',
|
axios: 'axios'
|
||||||
'crypto-js': 'CryptoJS'
|
|
||||||
}
|
}
|
||||||
// cdn
|
// cdn
|
||||||
const cdn = {
|
const cdn = {
|
||||||
// 开发环境
|
// 开发环境
|
||||||
dev: {
|
dev: {
|
||||||
css: [],
|
css: [],
|
||||||
js: [
|
js: ['https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.js']
|
||||||
'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.js'
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
// 生产环境
|
// 生产环境
|
||||||
build: {
|
build: {
|
||||||
@ -101,9 +98,7 @@ module.exports = {
|
|||||||
|
|
||||||
config
|
config
|
||||||
// https://webpack.js.org/configuration/devtool/#development
|
// https://webpack.js.org/configuration/devtool/#development
|
||||||
.when(process.env.NODE_ENV === 'development', config =>
|
.when(process.env.NODE_ENV === 'development', config => config.devtool('cheap-source-map'))
|
||||||
config.devtool('cheap-source-map')
|
|
||||||
)
|
|
||||||
|
|
||||||
config.when(process.env.NODE_ENV !== 'development', config => {
|
config.when(process.env.NODE_ENV !== 'development', config => {
|
||||||
config
|
config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user