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
75e045eb
authored
2020-11-04 17:20:19 +0800
by
sunniejs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix npm run lint bug
1 parent
0e8f5941
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
.eslintignore
package-lock.json
src/config/index.js
.eslintignore
View file @
75e045e
build/*.js
src/assets
src/config
public
dist
...
...
package-lock.json
View file @
75e045e
This diff is collapsed.
Click to expand it.
src/config/index.js
View file @
75e045e
// 根据环境引入不同配置 process.env.NODE_ENV
const
config
=
require
(
'./env.'
+
process
.
env
.
VUE_APP_ENV
)
//根据环境引入不同配置 process.env.NODE_ENV
const
environment
=
process
.
env
.
NODE_ENV
||
'development'
const
config
=
require
(
'./env.'
+
environment
)
module
.
exports
=
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