mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
build: upgrade dependencies and enable responsiveImages option
This commit is contained in:
+7
-9
@@ -14,15 +14,7 @@ export default defineConfig({
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
markdown: {
|
markdown: {
|
||||||
remarkPlugins: [
|
remarkPlugins: [remarkToc, [remarkCollapse, { test: "Table of contents" }]],
|
||||||
remarkToc,
|
|
||||||
[
|
|
||||||
remarkCollapse,
|
|
||||||
{
|
|
||||||
test: "Table of contents",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
|
||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
// For more themes, visit https://shiki.style/themes
|
// For more themes, visit https://shiki.style/themes
|
||||||
themes: { light: "min-light", dark: "night-owl" },
|
themes: { light: "min-light", dark: "night-owl" },
|
||||||
@@ -35,7 +27,13 @@ export default defineConfig({
|
|||||||
exclude: ["@resvg/resvg-js"],
|
exclude: ["@resvg/resvg-js"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
image: {
|
||||||
|
// Used for all Markdown images; not configurable per-image
|
||||||
|
// Used for all `<Image />` and `<Picture />` components unless overridden with a prop
|
||||||
|
experimentalLayout: "responsive",
|
||||||
|
},
|
||||||
experimental: {
|
experimental: {
|
||||||
svg: true,
|
svg: true,
|
||||||
|
responsiveImages: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
+8
-8
@@ -15,29 +15,29 @@
|
|||||||
"@astrojs/rss": "^4.0.11",
|
"@astrojs/rss": "^4.0.11",
|
||||||
"@astrojs/sitemap": "^3.2.1",
|
"@astrojs/sitemap": "^3.2.1",
|
||||||
"@resvg/resvg-js": "^2.6.2",
|
"@resvg/resvg-js": "^2.6.2",
|
||||||
"@tailwindcss/vite": "^4.0.8",
|
"@tailwindcss/vite": "^4.0.12",
|
||||||
"astro": "^5.3.1",
|
"astro": "^5.4.2",
|
||||||
"lodash.kebabcase": "^4.1.1",
|
"lodash.kebabcase": "^4.1.1",
|
||||||
"remark-collapse": "^0.1.2",
|
"remark-collapse": "^0.1.2",
|
||||||
"remark-toc": "^9.0.0",
|
"remark-toc": "^9.0.0",
|
||||||
"satori": "^0.12.1",
|
"satori": "^0.12.1",
|
||||||
"sharp": "^0.33.5",
|
"sharp": "^0.33.5",
|
||||||
"tailwindcss": "^4.0.8"
|
"tailwindcss": "^4.0.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/check": "^0.9.4",
|
"@astrojs/check": "^0.9.4",
|
||||||
"@pagefind/default-ui": "^1.3.0",
|
"@pagefind/default-ui": "^1.3.0",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"@types/lodash.kebabcase": "^4.1.9",
|
"@types/lodash.kebabcase": "^4.1.9",
|
||||||
"@typescript-eslint/parser": "^8.25.0",
|
"@typescript-eslint/parser": "^8.26.0",
|
||||||
"eslint": "^9.21.0",
|
"eslint": "^9.22.0",
|
||||||
"eslint-plugin-astro": "^1.3.1",
|
"eslint-plugin-astro": "^1.3.1",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"pagefind": "^1.3.0",
|
"pagefind": "^1.3.0",
|
||||||
"prettier": "^3.5.2",
|
"prettier": "^3.5.3",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.11",
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.8.2",
|
||||||
"typescript-eslint": "^8.25.0"
|
"typescript-eslint": "^8.26.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+372
-383
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user