Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
5f99571b
Commit
5f99571b
authored
Feb 03, 2023
by
YIyiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:添加打包生产zip文件
parent
40c5cc2a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
454 additions
and
13 deletions
+454
-13
base-manager-ui/admin/package.json
base-manager-ui/admin/package.json
+1
-0
base-manager-ui/admin/vue.config.js
base-manager-ui/admin/vue.config.js
+14
-3
base-manager-ui/admin/yarn.lock
base-manager-ui/admin/yarn.lock
+439
-10
No files found.
base-manager-ui/admin/package.json
View file @
5f99571b
...
...
@@ -67,6 +67,7 @@
"eslint"
:
"^6.7.2"
,
"eslint-plugin-vue"
:
"^6.2.2"
,
"fast-deep-equal"
:
"^3.1.3"
,
"filemanager-webpack-plugin"
:
"^8.0.0"
,
"gh-pages"
:
"^3.1.0"
,
"js-export-excel"
:
"^1.1.4"
,
"less-loader"
:
"^6.1.1"
,
...
...
base-manager-ui/admin/vue.config.js
View file @
5f99571b
...
...
@@ -5,8 +5,8 @@ const { getThemeColors, modifyVars } = require("./src/utils/themeUtil");
const
{
resolveCss
}
=
require
(
"
./src/utils/theme-color-replacer-extend
"
);
const
CompressionWebpackPlugin
=
require
(
"
compression-webpack-plugin
"
);
const
productionGzipExtensions
=
[
"
js
"
,
"
css
"
];
const
isProd
=
process
.
env
.
NODE_ENV
===
"
production
"
;
// const isDev = process.env.NODE_ENV === "development
";
const
FileManagerPlugin
=
require
(
"
filemanager-webpack-plugin
"
);
// 压缩文件夹
const
assetsCDN
=
{
// webpack build externals
// externals: {
...
...
@@ -56,13 +56,24 @@ module.exports = {
patterns
:
[
path
.
resolve
(
__dirname
,
"
./src/theme/theme.less
"
)],
},
},
//富文本改变图片大小插件
configureWebpack
:
{
plugins
:
[
//富文本改变图片大小插件
new
webpack
.
ProvidePlugin
({
"
window.Quill
"
:
"
quill/dist/quill.js
"
,
Quill
:
"
quill/dist/quill.js
"
,
}),
// 生产环境打包zip文件
new
FileManagerPlugin
({
events
:
{
onEnd
:
{
mkdir
:
[
"
./dist
"
],
delete
:
[
"
./dist.zip
"
],
archive
:
[{
source
:
"
./dist
"
,
destination
:
"
./dist.zip
"
}],
},
},
}),
],
},
css
:
{
...
...
base-manager-ui/admin/yarn.lock
View file @
5f99571b
This diff is collapsed.
Click to expand it.
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