Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
xqz
/
dianDemo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ccf0ad30
authored
2019-06-15 14:39:59 +0800
by
406803045
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新config
1 parent
3114e842
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
.env.production
.env.staging
vue.config.js
.env.production
View file @
ccf0ad3
...
...
@@ -2,7 +2,7 @@ NODE_ENV='production'
# must start with VUE_APP_
VUE_APP_ENV = 'production'
#base url
BASE_URL =
https://www.top1buyer.com/
BASE_URL =
'https://www.xxx.com/'
# base api
VUE_APP_BASE_API = '/prod-api'
...
...
.env.staging
View file @
ccf0ad3
...
...
@@ -2,8 +2,7 @@ NODE_ENV='production'
# must start with VUE_APP_
VUE_APP_ENV = 'staging'
#base url
#base url
BASE_URL = https://www.top1buyer.com/
BASE_URL = 'https://www.xxx.com/'
# base api
VUE_APP_BASE_API = '/stage-api'
...
...
vue.config.js
View file @
ccf0ad3
...
...
@@ -12,17 +12,14 @@ const externals = {
'vue-router'
:
'VueRouter'
,
vuex
:
'Vuex'
,
vant
:
'vant'
,
axios
:
'axios'
,
'crypto-js'
:
'CryptoJS'
axios
:
'axios'
}
// cdn
const
cdn
=
{
// 开发环境
dev
:
{
css
:
[],
js
:
[
'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.js'
]
js
:
[
'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.4/polyfill.js'
]
},
// 生产环境
build
:
{
...
...
@@ -101,9 +98,7 @@ module.exports = {
config
// https://webpack.js.org/configuration/devtool/#development
.
when
(
process
.
env
.
NODE_ENV
===
'development'
,
config
=>
config
.
devtool
(
'cheap-source-map'
)
)
.
when
(
process
.
env
.
NODE_ENV
===
'development'
,
config
=>
config
.
devtool
(
'cheap-source-map'
))
config
.
when
(
process
.
env
.
NODE_ENV
!==
'development'
,
config
=>
{
config
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment