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
bc6b3dcd
Commit
bc6b3dcd
authored
Jul 23, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: vue引入切换
parent
ea9edcf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
index.html
public/index.html
+1
-0
vue.config.js
vue.config.js
+5
-1
No files found.
public/index.html
View file @
bc6b3dcd
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1 ,user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1 ,user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<script
crossorigin=
"anonymous"
integrity=
"sha384-OZmxTjkv7EQo5XDMPAmIkkvywVeXw59YyYh6zq8UKfkbor13jS+5p8qMTBSA1q+F"
src=
"https://lib.baomitu.com/vue/2.6.11/vue.min.js"
></script>
</head>
</head>
<body>
<body>
<noscript>
<noscript>
...
...
vue.config.js
View file @
bc6b3dcd
...
@@ -3,6 +3,11 @@ const resolve = dir => path.join(__dirname, dir);
...
@@ -3,6 +3,11 @@ const resolve = dir => path.join(__dirname, dir);
const
IS_PROD
=
process
.
env
.
NODE_ENV
===
"
production
"
;
const
IS_PROD
=
process
.
env
.
NODE_ENV
===
"
production
"
;
module
.
exports
=
{
module
.
exports
=
{
configureWebpack
:
{
externals
:
{
vue
:
"
Vue
"
}
},
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
// 修复HMR
// 修复HMR
config
.
resolve
.
symlinks
(
true
);
config
.
resolve
.
symlinks
(
true
);
...
@@ -41,7 +46,6 @@ module.exports = {
...
@@ -41,7 +46,6 @@ module.exports = {
priority
:
10
,
priority
:
10
,
chunks
:
"
initial
"
// only package third parties that are initially dependent
chunks
:
"
initial
"
// only package third parties that are initially dependent
},
},
// TODO 🤨打包没用,emmmmmmmmmmm
cherryUI
:
{
cherryUI
:
{
name
:
"
chunk-cherryUI
"
,
// split cherryUI into a single package
name
:
"
chunk-cherryUI
"
,
// split cherryUI into a single package
priority
:
20
,
// the weight needs to be larger than libs and app or it will be packaged into libs or app
priority
:
20
,
// the weight needs to be larger than libs and app or it will be packaged into libs or app
...
...
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