Skip to content

Commit 75707c6

Browse files
authored
Revert "feat: generate gzip assets during build (#3178)" (#3219)
This reverts commit 1bdbfa6.
1 parent 984a872 commit 75707c6

File tree

4 files changed

+3
-49
lines changed

4 files changed

+3
-49
lines changed

e2e/server/nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ server {
1919
listen 6174;
2020

2121
location /ui {
22-
rewrite ^/ui$ /ui/ permanent;
22+
rewrite ^/ui$ /ui/ permanent;
2323
}
2424

2525
location /ui/ {
2626
alias /usr/share/nginx/html/;
27-
gzip_static always;
28-
error_page 404 /ui/index.html;
27+
index index.html;
28+
try_files $uri $uri/ /ui/index.html;
2929
}
3030

3131
location / {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"unplugin-icons": "^22.1.0",
9090
"unplugin-info": "^1.2.2",
9191
"vite": "^6.3.5",
92-
"vite-plugin-compression2": "^2.2.0",
9392
"vite-tsconfig-paths": "^5.1.4",
9493
"yaml": "^2.7.1"
9594
},

pnpm-lock.yaml

Lines changed: 0 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import postcssSimpleVars from 'postcss-simple-vars';
2222
import UnpluginIcons from 'unplugin-icons/vite';
2323
import UnpluginInfo from 'unplugin-info/vite';
2424
import { defineConfig } from 'vite';
25-
import { compression } from 'vite-plugin-compression2';
2625
import tsconfigPaths from 'vite-tsconfig-paths';
2726

2827
import { API_PREFIX, BASE_PATH } from './src/config/constant';
@@ -99,10 +98,6 @@ export default defineConfig({
9998
react({
10099
plugins: [observerPlugin() as never],
101100
}),
102-
compression({
103-
algorithms: ['gzip'],
104-
deleteOriginalAssets: true,
105-
}),
106101
],
107102
css: {
108103
postcss: {

0 commit comments

Comments
 (0)