Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
Project
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
姜雷
dcxy-system
Commits
ee54a093
Commit
ee54a093
authored
Mar 27, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打包方式
parent
70f859f6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
13 deletions
+19
-13
package.json
package.json
+2
-1
index.html
public/index.html
+4
-4
develop.html
src/dev-local/develop.html
+0
-0
develop.js
src/dev-local/develop.js
+1
-1
vue.config.js
vue.config.js
+12
-7
No files found.
package.json
View file @
ee54a093
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
"author"
:
"kuangshu <252019869@qq.com>"
,
"author"
:
"kuangshu <252019869@qq.com>"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vue-cli-service serve ./src/develop.js --port 8891"
,
"dev"
:
"vue-cli-service serve --port 8891"
,
"dev:local"
:
"vue-cli-service serve ./src/dev-local/develop.js --port 8891"
,
"start"
:
"npm run dev"
,
"start"
:
"npm run dev"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"build"
:
"vue-cli-service build --modern"
,
"build"
:
"vue-cli-service build --modern"
,
...
...
public/index.html
View file @
ee54a093
...
@@ -9,10 +9,6 @@
...
@@ -9,10 +9,6 @@
<script
src=
"https://cdn.jsdelivr.net/npm/vuex@3.1.0/dist/vuex.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vuex@3.1.0/dist/vuex.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vue-router@3.0.1/dist/vue-router.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vue-router@3.0.1/dist/vue-router.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %><%= VUE_APP_LIB_BASE_URL %>lib/manageShell.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %><%= VUE_APP_LIB_BASE_URL %>lib/manageShell.umd.js"
></script>
<link
rel=
"stylesheet"
href=
"<%= VUE_APP_LIB_MANAGER %><%= VUE_APP_LIB_BASE_URL %>lib/manageShell.css"
/>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/customerManage/lib/customerManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/customerManage/lib/customerManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/baseManage/lib/baseManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/baseManage/lib/baseManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.umd.js"
></script>
...
@@ -28,6 +24,10 @@
...
@@ -28,6 +24,10 @@
rel=
"stylesheet"
rel=
"stylesheet"
href=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.css"
href=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.css"
/>
/>
<link
rel=
"stylesheet"
href=
"<%= VUE_APP_LIB_MANAGER %><%= VUE_APP_LIB_BASE_URL %>lib/manageShell.css"
/>
<title>
系统管理
</title>
<title>
系统管理
</title>
</head>
</head>
<body>
<body>
...
...
public
/develop.html
→
src/dev-local
/develop.html
View file @
ee54a093
File moved
src/develop.js
→
src/dev
-local/dev
elop.js
View file @
ee54a093
import
System
from
'./lib/main'
;
import
System
from
'.
.
/lib/main'
;
window
.
manageShell
=
{
default
:
System
};
window
.
manageShell
=
{
default
:
System
};
...
...
vue.config.js
View file @
ee54a093
...
@@ -8,7 +8,10 @@ let isLib = (() => {
...
@@ -8,7 +8,10 @@ let isLib = (() => {
return
false
;
return
false
;
}
}
})();
})();
console
.
log
(
process
.
env
.
NODE_ENV
==
'development'
);
let
isLocal
=
(()
=>
{
return
/develop/
.
test
(
process
.
argv
[
3
]);
})();
module
.
exports
=
{
module
.
exports
=
{
publicPath
:
process
.
env
.
VUE_APP_BASE_URL
,
publicPath
:
process
.
env
.
VUE_APP_BASE_URL
,
...
@@ -23,11 +26,13 @@ module.exports = {
...
@@ -23,11 +26,13 @@ module.exports = {
],
],
},
},
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
config
.
plugin
(
'html'
).
tap
(
args
=>
{
if
(
!
isLib
&&
isLocal
)
{
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
config
.
plugin
(
'html'
).
tap
(
args
=>
{
args
[
0
].
template
=
Path
.
join
(
'public'
,
'develop.html'
);
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
}
args
[
0
].
template
=
Path
.
join
(
'src'
,
'dev-local'
,
'develop.html'
);
return
args
;
}
});
return
args
;
});
}
},
},
};
};
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