File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 3838 if : ${{ contains(github.event.inputs.registry, 'fit2cloud') }}
3939 runs-on : ubuntu-latest
4040 steps :
41+ - name : Clear Work Dir
42+ run : rm -rf -- ./* ./.??*
4143 - name : Check Disk Space
4244 run : df -h
4345 - name : Free Disk Space (Ubuntu)
@@ -105,6 +107,8 @@ jobs:
105107 if : ${{ contains(github.event.inputs.registry, 'dockerhub') }}
106108 runs-on : ubuntu-latest
107109 steps :
110+ - name : Clear Work Dir
111+ run : rm -rf -- ./* ./.??*
108112 - name : Check Disk Space
109113 run : df -h
110114 - name : Free Disk Space (Ubuntu)
Original file line number Diff line number Diff line change 4444 "screenfull" : " ^6.0.2" ,
4545 "sortablejs" : " ^1.15.6" ,
4646 "use-element-plus-theme" : " ^0.0.5" ,
47- "vite-plugin-compression" : " ^0.5.1" ,
4847 "vite-plugin-html" : " ^3.2.2" ,
4948 "vue" : " ^3.5.13" ,
5049 "vue-clipboard3" : " ^2.0.0" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
66import DefineOptions from 'unplugin-vue-define-options/vite'
77import path from 'path'
88import { createHtmlPlugin } from 'vite-plugin-html'
9- import viteCompression from 'vite-plugin-compression'
109import fs from 'fs'
1110// import vueDevTools from 'vite-plugin-vue-devtools'
1211const envDir = './env'
@@ -88,14 +87,6 @@ export default defineConfig((conf: any) => {
8887 DefineOptions ( ) ,
8988 createHtmlPlugin ( { template : ENV . VITE_ENTRY } ) ,
9089 renameHtmlPlugin ( `dist${ ENV . VITE_BASE_PATH } ` , ENV . VITE_ENTRY ) ,
91- viteCompression ( {
92- // gzip静态资源压缩配置
93- verbose : true , // 是否在控制台输出压缩结果
94- disable : false , // 是否禁用压缩
95- threshold : 10240 , // 启用压缩的文件大小限制
96- algorithm : 'gzip' , // 采用的压缩算法
97- ext : '.gz' , // 生成的压缩包后缀
98- } ) ,
9990 ] ,
10091 server : {
10192 cors : true ,
You can’t perform that action at this time.
0 commit comments