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
8897a660
Commit
8897a660
authored
Feb 03, 2023
by
YIyiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改配置文件
parent
7198af5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
base-manager-ui/admin/vue.config.js
base-manager-ui/admin/vue.config.js
+4
-3
No files found.
base-manager-ui/admin/vue.config.js
View file @
8897a660
...
...
@@ -8,6 +8,7 @@ const productionGzipExtensions = ["js", "css"];
const
isDev
=
process
.
env
.
NODE_ENV
===
"
development
"
;
const
FileManagerPlugin
=
require
(
"
filemanager-webpack-plugin
"
);
// 压缩文件夹
let
plugins
=
[];
// 避免打本地启项目时自动打zip包
if
(
!
isDev
)
{
plugins
.
push
(
new
FileManagerPlugin
({
...
...
@@ -49,6 +50,9 @@ const assetsCDN = {
const
BundleAnalyzerPlugin
=
require
(
"
webpack-bundle-analyzer
"
)
.
BundleAnalyzerPlugin
;
module
.
exports
=
{
publicPath
:
"
./
"
,
// 打包目录--多加一层dist打zip时候把dist外壳打进去
outputDir
:
"
dist/dist
"
,
devServer
:
{
disableHostCheck
:
true
,
port
:
8080
,
...
...
@@ -101,9 +105,6 @@ module.exports = {
},
},
},
publicPath
:
"
./
"
,
// publicPath: process.env.VUE_APP_PUBLIC_PATH,
outputDir
:
"
dist/dist
"
,
assetsDir
:
"
static
"
,
productionSourceMap
:
false
,
};
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