ccf0ad30 by 406803045

更新config

1 parent 3114e842
...@@ -2,7 +2,7 @@ NODE_ENV='production' ...@@ -2,7 +2,7 @@ NODE_ENV='production'
2 # must start with VUE_APP_ 2 # must start with VUE_APP_
3 VUE_APP_ENV = 'production' 3 VUE_APP_ENV = 'production'
4 #base url 4 #base url
5 BASE_URL = https://www.top1buyer.com/ 5 BASE_URL = 'https://www.xxx.com/'
6 # base api 6 # base api
7 VUE_APP_BASE_API = '/prod-api' 7 VUE_APP_BASE_API = '/prod-api'
8 8
......
...@@ -2,8 +2,7 @@ NODE_ENV='production' ...@@ -2,8 +2,7 @@ NODE_ENV='production'
2 # must start with VUE_APP_ 2 # must start with VUE_APP_
3 VUE_APP_ENV = 'staging' 3 VUE_APP_ENV = 'staging'
4 #base url 4 #base url
5 #base url 5 BASE_URL = 'https://www.xxx.com/'
6 BASE_URL = https://www.top1buyer.com/
7 # base api 6 # base api
8 VUE_APP_BASE_API = '/stage-api' 7 VUE_APP_BASE_API = '/stage-api'
9 8
......
...@@ -12,17 +12,14 @@ const externals = { ...@@ -12,17 +12,14 @@ const externals = {
12 'vue-router': 'VueRouter', 12 'vue-router': 'VueRouter',
13 vuex: 'Vuex', 13 vuex: 'Vuex',
14 vant: 'vant', 14 vant: 'vant',
15 axios: 'axios', 15 axios: 'axios'
16 'crypto-js': 'CryptoJS'
17 } 16 }
18 // cdn 17 // cdn
19 const cdn = { 18 const cdn = {
20 // 开发环境 19 // 开发环境
21 dev: { 20 dev: {
22 css: [], 21 css: [],
23 js: [ 22 js: ['https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.js']
24 'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.js'
25 ]
26 }, 23 },
27 // 生产环境 24 // 生产环境
28 build: { 25 build: {
...@@ -101,9 +98,7 @@ module.exports = { ...@@ -101,9 +98,7 @@ module.exports = {
101 98
102 config 99 config
103 // https://webpack.js.org/configuration/devtool/#development 100 // https://webpack.js.org/configuration/devtool/#development
104 .when(process.env.NODE_ENV === 'development', config => 101 .when(process.env.NODE_ENV === 'development', config => config.devtool('cheap-source-map'))
105 config.devtool('cheap-source-map')
106 )
107 102
108 config.when(process.env.NODE_ENV !== 'development', config => { 103 config.when(process.env.NODE_ENV !== 'development', config => {
109 config 104 config
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!