mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-01-22 17:39:07 +08:00
style(app): 使用 NuxtImg 替代 img 标签
在多个组件中将 `img` 标签替换为 `NuxtImg` 标签,提升图片加载的性能和优化。例如,在 `AboutSection.vue`、`FriendsSection.vue`、`HeroSection.vue`、`ProjectsSection.vue`、`SitesSection.vue` 和 `SkillsSection.vue` 中的图片标签。 refactor(app): 扩展 `nuxt.config.ts` 配置 扩展了 `nuxt.config.ts` 配置文件中的模块配置,添加了 `@nuxt/image` 和 `@nuxt/eslint` 模块。同时,优化了 `routeRules` 配置,以支持预渲染和增量静态生成。
This commit is contained in:
@@ -6,11 +6,16 @@
|
||||
"dev": "nuxt dev",
|
||||
"build": "nuxt build",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview"
|
||||
"preview": "nuxt preview",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@giscus/vue": "^3.1.1",
|
||||
"@jaseeey/vue-umami-plugin": "^1.4.0",
|
||||
"@nuxt/eslint": "1.12.1",
|
||||
"@nuxt/image": "2.0.0",
|
||||
"eslint": "^9.39.2",
|
||||
"nodemailer": "^7.0.11",
|
||||
"nuxt": "^4.2.2",
|
||||
"vite-tsconfig-paths": "^6.0.1"
|
||||
|
||||
Reference in New Issue
Block a user