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
d4658168
Commit
d4658168
authored
Feb 03, 2023
by
YIyiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改打包配置
parent
8897a660
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
268 additions
and
17 deletions
+268
-17
portal-manager-ui/admin/.gitignore
portal-manager-ui/admin/.gitignore
+1
-1
portal-manager-ui/admin/package.json
portal-manager-ui/admin/package.json
+2
-1
portal-manager-ui/admin/vue.config.js
portal-manager-ui/admin/vue.config.js
+30
-7
portal-manager-ui/admin/yarn.lock
portal-manager-ui/admin/yarn.lock
+235
-8
No files found.
portal-manager-ui/admin/.gitignore
View file @
d4658168
.DS_Store
node_modules
/dist
dist.zip
# local env files
.env.local
...
...
portal-manager-ui/admin/package.json
View file @
d4658168
...
...
@@ -4,7 +4,7 @@
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build
--mode production
"
,
"test"
:
"vue-cli-service build --model test"
,
"yibin"
:
"vue-cli-service build --model yibin"
,
"build:prod"
:
"vue-cli-service build --model prod"
...
...
@@ -35,6 +35,7 @@
"@vue/cli-service"
:
"~5.0.0"
,
"browserslist"
:
"^4.21.4"
,
"caniuse-lite"
:
"^1.0.30001442"
,
"filemanager-webpack-plugin"
:
"^8.0.0"
,
"less"
:
"^4.0.0"
,
"less-loader"
:
"^8.0.0"
,
"postcss"
:
"^8.4.12"
,
...
...
portal-manager-ui/admin/vue.config.js
View file @
d4658168
const
{
defineConfig
}
=
require
(
'
@vue/cli-service
'
)
const
{
defineConfig
}
=
require
(
"
@vue/cli-service
"
);
const
FileManagerPlugin
=
require
(
"
filemanager-webpack-plugin
"
);
// 压缩文件夹
const
isDev
=
process
.
env
.
NODE_ENV
===
"
development
"
;
let
plugins
=
[];
// 避免打本地启项目时自动打zip包
if
(
!
isDev
)
{
plugins
.
push
(
new
FileManagerPlugin
({
events
:
{
onEnd
:
{
mkdir
:
[
"
./dist
"
],
delete
:
[
"
./dist.zip
"
],
archive
:
[{
source
:
"
./dist
"
,
destination
:
"
./dist.zip
"
}],
},
},
})
);
}
module
.
exports
=
defineConfig
({
transpileDependencies
:
true
,
lintOnSave
:
false
,
// 打包目录--多加一层dist打zip时候把dist外壳打进去
outputDir
:
"
dist/dist
"
,
configureWebpack
:
{
plugins
:
[...
plugins
],
},
devServer
:
{
proxy
:
{
'
/api
'
:
{
"
/api
"
:
{
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
changeOrigin
:
true
,
pathRewrite
:
{
'
^/api
'
:
''
"
^/api
"
:
""
,
},
}
}
}
,
}
,
},
publicPath
:
'
./
'
})
publicPath
:
"
./
"
,
});
portal-manager-ui/admin/yarn.lock
View file @
d4658168
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