Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
459aeeb3
Commit
459aeeb3
authored
Feb 07, 2023
by
YIyiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加打包配置
parent
11490842
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
272 additions
and
21 deletions
+272
-21
sample-form-client-ui/admin/.browserslistrc
sample-form-client-ui/admin/.browserslistrc
+1
-1
sample-form-client-ui/admin/.gitignore
sample-form-client-ui/admin/.gitignore
+1
-1
sample-form-client-ui/admin/package.json
sample-form-client-ui/admin/package.json
+2
-1
sample-form-client-ui/admin/vue.config.js
sample-form-client-ui/admin/vue.config.js
+35
-12
sample-form-client-ui/admin/yarn.lock
sample-form-client-ui/admin/yarn.lock
+233
-6
No files found.
sample-form-client-ui/admin/.browserslistrc
View file @
459aeeb3
> 1%
last 2 versions
not
dead
not
ie <= 10
sample-form-client-ui/admin/.gitignore
View file @
459aeeb3
.DS_Store
node_modules
/dist
样表终端系统.zip
# local env files
.env.local
...
...
sample-form-client-ui/admin/package.json
View file @
459aeeb3
...
...
@@ -5,7 +5,7 @@
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"dev"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build
--mode production
"
,
"lint"
:
"vue-cli-service lint"
,
"test"
:
"vue-cli-service build --mode test"
,
"build:prod"
:
"vue-cli-service build --model prod"
...
...
@@ -43,6 +43,7 @@
"@vue/cli-service"
:
"~5.0.0"
,
"eslint"
:
"^7.32.0"
,
"eslint-plugin-vue"
:
"^8.0.3"
,
"filemanager-webpack-plugin"
:
"^8.0.0"
,
"less"
:
"^4.0.0"
,
"less-loader"
:
"^8.0.0"
,
"svg-sprite-loader"
:
"^4.1.6"
,
...
...
sample-form-client-ui/admin/vue.config.js
View file @
459aeeb3
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
:
[
"
./样表终端系统.zip
"
],
archive
:
[{
source
:
"
./dist
"
,
destination
:
"
./样表终端系统.zip
"
}],
},
},
})
);
}
module
.
exports
=
defineConfig
({
transpileDependencies
:
true
,
productionSourceMap
:
false
,
assetsDir
:
'
s
'
,
lintOnSave
:
false
,
lintOnSave
:
false
,
// webpack 插件
configureWebpack
:
{
plugins
:
[...
plugins
],
},
transpileDependencies
:
true
,
// 打包输出目录
outputDir
:
"
dist/dist
"
,
publicPath
:
"
./
"
,
devServer
:
{
port
:
9086
,
hot
:
"
only
"
,
//自动保存
hot
:
"
only
"
,
//自动保存
proxy
:
{
'
/sampleform
'
:
{
target
:
'
http://localhost:17002
'
,
"
/sampleform
"
:
{
target
:
"
http://localhost:17002
"
,
changeOrigin
:
true
,
secure
:
false
,
cookieDomainRewrite
:
'
localhost
'
,
}
}
}
})
cookieDomainRewrite
:
"
localhost
"
,
}
,
}
,
}
,
})
;
sample-form-client-ui/admin/yarn.lock
View file @
459aeeb3
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