From 6bd66224846fa4e6887e7e434663591985f528cd Mon Sep 17 00:00:00 2001 From: alger Date: Tue, 21 May 2024 11:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20style:=20=E6=B7=BB=E5=8A=A0gzip?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 31 ++++++++++++++++--------------- vite.config.ts | 3 ++- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 604ae13..ae49fd9 100644 --- a/package.json +++ b/package.json @@ -19,25 +19,16 @@ }, "devDependencies": { "@tailwindcss/postcss7-compat": "^2.2.4", - "@vue/runtime-core": "^3.3.4", - "@vueuse/core": "^10.7.1", - "@vueuse/electron": "^10.9.0", - "autoprefixer": "^9.8.6", - "axios": "^0.21.1", - "lodash": "^4.17.21", - "naive-ui": "^2.34.4", - "postcss": "^7.0.36", - "remixicon": "^4.2.0", - "sass": "^1.35.2", - "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.4", - "vue": "^3.3.4", - "vue-router": "^4.2.4", - "vuex": "^4.1.0", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "@vitejs/plugin-vue": "^4.2.3", "@vue/compiler-sfc": "^3.3.4", "@vue/eslint-config-typescript": "^12.0.0", + "@vue/runtime-core": "^3.3.4", + "@vueuse/core": "^10.7.1", + "@vueuse/electron": "^10.9.0", + "autoprefixer": "^9.8.6", + "axios": "^0.21.1", "electron": "^30.0.0", "electron-builder": "^24.13.0", "eslint": "^8.56.0", @@ -48,13 +39,23 @@ "eslint-plugin-simple-import-sort": "^12.0.0", "eslint-plugin-vue": "^9.21.1", "eslint-plugin-vue-scoped-css": "^2.7.2", + "lodash": "^4.17.21", + "naive-ui": "^2.34.4", + "postcss": "^7.0.36", "prettier": "^3.2.5", + "remixicon": "^4.2.0", + "sass": "^1.35.2", + "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.4", "typescript": "^4.3.2", "unplugin-auto-import": "^0.17.2", "unplugin-vue-components": "^0.26.0", "vfonts": "^0.1.0", "vite": "^4.4.7", + "vite-plugin-compression": "^0.5.1", "vite-plugin-vue-devtools": "1.0.0-beta.5", - "vue-tsc": "^0.0.24" + "vue": "^3.3.4", + "vue-router": "^4.2.4", + "vue-tsc": "^0.0.24", + "vuex": "^4.1.0" } } diff --git a/vite.config.ts b/vite.config.ts index 7fc069f..b71158f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,11 +5,12 @@ import AutoImport from 'unplugin-auto-import/vite'; import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'; import Components from 'unplugin-vue-components/vite'; import { defineConfig } from 'vite'; +import viteCompression from 'vite-plugin-compression'; -// https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue(), + viteCompression(), // VueDevTools(), AutoImport({ imports: [