Skip to content

Commit 12feafb

Browse files
refactor: remove vite-plugin-compression as gzip is enabled in django.
1 parent 5ce9897 commit 12feafb

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.github/workflows/build-and-push.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Clear Work Dir
42-
run: rm -rf -- ./* ./.??*
42+
run: |
43+
ls -la
44+
rm -rf -- ./* ./.??*
4345
- name: Check Disk Space
4446
run: df -h
4547
- name: Free Disk Space (Ubuntu)
@@ -108,7 +110,9 @@ jobs:
108110
runs-on: ubuntu-latest
109111
steps:
110112
- name: Clear Work Dir
111-
run: rm -rf -- ./* ./.??*
113+
run: |
114+
ls -la
115+
rm -rf -- ./* ./.??*
112116
- name: Check Disk Space
113117
run: df -h
114118
- name: Free Disk Space (Ubuntu)

ui/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
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",

ui/vite.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import vueJsx from '@vitejs/plugin-vue-jsx'
66
import DefineOptions from 'unplugin-vue-define-options/vite'
77
import path from 'path'
88
import { createHtmlPlugin } from 'vite-plugin-html'
9-
import viteCompression from 'vite-plugin-compression'
109
import fs from 'fs'
1110
// import vueDevTools from 'vite-plugin-vue-devtools'
1211
const 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,

0 commit comments

Comments
 (0)