Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
5a186500
Commit
5a186500
authored
Dec 23, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打包命令配置
parent
9d2df392
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
.env.production
.env.production
+1
-0
.env.test
.env.test
+2
-1
.eslintrc.js
.eslintrc.js
+2
-2
index.vue
src/views/Djwh/index.vue
+1
-1
vue.config.js
vue.config.js
+3
-3
No files found.
.env.production
View file @
5a186500
NODE_ENV = "production"
VUE_APP_CURRENTMODE = "production"
VUE_APP_HOST_URL = "http://192.168.0.77:9091"
VUE_APP_API_URL = "http://192.168.0.77:9091"
...
...
.env.test
View file @
5a186500
VUE_APP_CURRENTMODE
=
"production"
NODE_ENV
=
"production"
VUE_APP_CURRENTMODE
=
"test"
VUE_APP_HOST_URL
=
"http://81.68.189.225:9091"
VUE_APP_API_URL
=
"http://81.68.189.225:9091"
VUE_APP_GDS_URL
=
"http://data-studio.gds.org.cn"
...
...
.eslintrc.js
View file @
5a186500
...
...
@@ -8,8 +8,8 @@ module.exports = {
'eslint:recommended'
],
rules
:
{
'no-console'
:
process
.
env
.
NODE_ENV
===
'production
'
?
'error'
:
'off'
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production
'
?
'error'
:
'off'
'no-console'
:
process
.
env
.
NODE_ENV
!==
'development
'
?
'error'
:
'off'
,
'no-debugger'
:
process
.
env
.
NODE_ENV
!==
'development
'
?
'error'
:
'off'
},
parserOptions
:
{
parser
:
'babel-eslint'
...
...
src/views/Djwh/index.vue
View file @
5a186500
...
...
@@ -163,7 +163,7 @@ export default {
},
data
()
{
return
{
path
:
process
.
env
.
VUE_APP_HOST_URL
,
path
:
process
.
env
.
VUE_APP_HOST_URL
,
animate
:
false
,
marginTop
:
0
,
hotList
:[],
...
...
vue.config.js
View file @
5a186500
...
...
@@ -6,7 +6,7 @@ const resolve = dir => {
return
path
.
join
(
__dirname
,
dir
)
}
const
BASE_URL
=
process
.
env
.
NODE_ENV
===
"production
"
const
BASE_URL
=
process
.
env
.
NODE_ENV
!==
"development
"
?
"/"
:
"/"
...
...
@@ -16,7 +16,7 @@ module.exports = {
indexPath
:
"index.html"
,
//生成的html路径
filenameHashing
:
true
,
//生成文件名中包含hash
productionSourceMap
:
false
,
lintOnSave
:
process
.
env
.
NODE_ENV
===
"production
"
,
// 是否保存时limt代码
lintOnSave
:
process
.
env
.
NODE_ENV
!==
"development
"
,
// 是否保存时limt代码
runtimeCompiler
:
true
,
//是否使用编译器
chainWebpack
:
config
=>
{
config
.
resolve
.
alias
...
...
@@ -25,7 +25,7 @@ module.exports = {
},
css
:
{
modules
:
false
,
//启动css Modules
extract
:
process
.
env
.
NODE_ENV
===
"production
"
,
//css分离插件
extract
:
process
.
env
.
NODE_ENV
!==
"development
"
,
//css分离插件
loaderOptions
:
{
css
:
{
localIdentName
:
"[path]-[name]-[local]-[hash:base64:5]"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment