Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
68dba373
Commit
68dba373
authored
Jul 16, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化项目
parent
5f01a742
Pipeline
#619
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
vue.config.js
vue.config.js
+25
-0
No files found.
vue.config.js
0 → 100644
View file @
68dba373
const
path
=
require
(
"
path
"
);
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
);
const
IS_PROD
=
process
.
env
.
NODE_ENV
===
'
production
'
;
module
.
exports
=
{
chainWebpack
:
config
=>
{
// 修复HMR
config
.
resolve
.
symlinks
(
true
);
// 移除 prefetch 插件(针对生产环境首屏请求数进行优化)
config
.
plugins
.
delete
(
'
prefetch
'
)
// 移除 preload 插件(针对生产环境首屏请求数进行优化) preload 插件的用途:https://cli.vuejs.org/zh/guide/html-and-static-assets.html#preload
config
.
plugins
.
delete
(
'
preload
'
)
// 添加别名
config
.
resolve
.
alias
.
set
(
"
@
"
,
resolve
(
"
src
"
))
return
config
;
},
lintOnSave
:
true
,
runtimeCompiler
:
false
,
// 是否使用包含运行时编译器的 Vue 构建版本
productionSourceMap
:
IS_PROD
,
// 生产环境的 source map
};
\ No newline at end of file
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