From 1602d7a1f5ecb8467290be25e43556618cfe0f5b Mon Sep 17 00:00:00 2001 From: song Date: Fri, 29 Oct 2021 15:51:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 2 +- package-lock.json | 18 ++++++++++++------ package.json | 1 + src/App.vue | 24 ++++++++++++++---------- src/routers/index.js | 20 ++++++++++---------- vite.config.js | 15 ++++++++++++++- 6 files changed, 52 insertions(+), 28 deletions(-) diff --git a/.eslintignore b/.eslintignore index 73cebaf..c622f86 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,4 +6,4 @@ babel.config.js package.json postcss.config.js .eslintrc.js -vue.config.js +vite.config.js diff --git a/package-lock.json b/package-lock.json index fcc4d61..30b811c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2670,7 +2670,6 @@ "version": "10.0.0", "resolved": "https://registry.nlark.com/fs-extra/download/fs-extra-10.0.0.tgz", "integrity": "sha1-n/YbZV3eU/s0qC34S7IUzoAuF8E=", - "dev": true, "requires": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -2832,8 +2831,7 @@ "graceful-fs": { "version": "4.2.8", "resolved": "https://registry.nlark.com/graceful-fs/download/graceful-fs-4.2.8.tgz", - "integrity": "sha1-5BK40z9eAGWTy9PO5t+fLOu+gCo=", - "dev": true + "integrity": "sha1-5BK40z9eAGWTy9PO5t+fLOu+gCo=" }, "hard-rejection": { "version": "2.1.0", @@ -3427,7 +3425,6 @@ "version": "6.1.0", "resolved": "https://registry.npm.taobao.org/jsonfile/download/jsonfile-6.1.0.tgz?cache=0&sync_timestamp=1604161822397&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsonfile%2Fdownload%2Fjsonfile-6.1.0.tgz", "integrity": "sha1-vFWyY0eTxnnsZAMJTrE2mKbsCq4=", - "dev": true, "requires": { "graceful-fs": "^4.1.6", "universalify": "^2.0.0" @@ -4834,8 +4831,7 @@ "universalify": { "version": "2.0.0", "resolved": "https://registry.npm.taobao.org/universalify/download/universalify-2.0.0.tgz", - "integrity": "sha1-daSYTv7cSwiXXFrrc/Uw0C3yVxc=", - "dev": true + "integrity": "sha1-daSYTv7cSwiXXFrrc/Uw0C3yVxc=" }, "unplugin": { "version": "0.2.16", @@ -4907,6 +4903,16 @@ "rollup": "^2.57.0" } }, + "vite-plugin-compression": { + "version": "0.3.5", + "resolved": "https://registry.nlark.com/vite-plugin-compression/download/vite-plugin-compression-0.3.5.tgz", + "integrity": "sha1-HlM460PmASjebW8isqq/Dj3AwX8=", + "requires": { + "chalk": "^4.1.2", + "debug": "^4.3.2", + "fs-extra": "^10.0.0" + } + }, "vite-plugin-linter": { "version": "1.0.1", "resolved": "https://registry.npmmirror.com/vite-plugin-linter/download/vite-plugin-linter-1.0.1.tgz", diff --git a/package.json b/package.json index 0bdc377..c3054c2 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "element-plus": "^1.1.0-beta.24", "lodash": "^4.17.21", "vite": "^2.6.4", + "vite-plugin-compression": "^0.3.5", "vite-plugin-windicss": "^1.4.11", "vue": "^3.2.16", "vue-router": "^4.0.12", diff --git a/src/App.vue b/src/App.vue index c0ea327..b06ad71 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@