擅长不必要的库,减少体积

This commit is contained in:
zwb 2024-08-03 11:27:39 +08:00 committed by niyyzf
parent 009f46879c
commit 17e18a5754
4 changed files with 1068 additions and 1595 deletions

1
web/.gitignore vendored
View File

@ -1,5 +1,6 @@
# Nuxt dev/build outputs
.output
output
.data
.nuxt
.nitro

View File

@ -10,12 +10,10 @@ export default defineNuxtConfig({
modules: [
'@nuxtjs/color-mode',
'@hypernym/nuxt-gsap',
"@nuxt/image",
"@nuxtjs/google-fonts",
'nuxt-lucide-icons',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
"@vite-pwa/nuxt",
"@vueuse/nuxt",
"nuxtjs-naive-ui"
],
@ -38,25 +36,25 @@ export default defineNuxtConfig({
})
]
},
pwa: {
manifest: {
name: "pwa nuxt 3",
short_name: "pwa nuxt",
theme_color: '#FFFFFF',
description: "Arman Abi r.man.abi@gmail.com",
icons: [{
src: '/pwa-192x192.png', sizes: "192x192", type: "image/png"
},]
}, workbox: {
navigateFallback: "/SignIn",
}, devOptions: {
enabled: true, type: "module"
}
},
// pwa: {
// manifest: {
// name: "pwa nuxt 3",
// short_name: "pwa nuxt",
// theme_color: '#FFFFFF',
// description: "Arman Abi r.man.abi@gmail.com",
// icons: [{
// src: '/pwa-192x192.png', sizes: "192x192", type: "image/png"
// },]
//
//
// }, workbox: {
// navigateFallback: "/SignIn",
//
// }, devOptions: {
// enabled: true, type: "module"
// }
//
// },
gsap: {
autoImport: true,

View File

@ -12,7 +12,6 @@
"start": "nuxt start"
},
"dependencies": {
"@nuxt/image": "^1.7.0",
"@nuxtjs/google-fonts": "^3.2.0",
"@types/lodash": "^4.17.5",
"@vite-pwa/nuxt": "^0.8.0",
@ -25,10 +24,9 @@
"md-editor-v3": "^4.17.0",
"naive-ui": "^2.39.0",
"nuxt": "^3.11.2",
"nuxt-primevue": "^3.0.0",
"nuxtjs-naive-ui": "^1.0.2",
"patch-package": "^8.0.0",
"primeicons": "^7.0.0",
"pinia": "^2.2.0",
"unplugin-auto-import": "^0.18.0",
"unplugin-vue-components": "^0.27.3",
"uuid": "^9.0.1",
@ -49,13 +47,11 @@
"@pinia-plugin-persistedstate/nuxt": "^1.2.0",
"@pinia/nuxt": "^0.5.1",
"@types/uuid": "^9.0.8",
"@vite-pwa/assets-generator": "^0.2.4",
"@vueuse/core": "^10.11.0",
"@vueuse/nuxt": "^10.10.0",
"nuxt-gsap-module": "^2.0.0",
"nuxt-lucide-icons": "^1.0.4",
"sass": "^1.77.4",
"vue3-draggable-grid": "^0.0.6",
"vue3-puzzle-vcode": "^1.1.7"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"

File diff suppressed because it is too large Load Diff