added astro-compress

This commit is contained in:
Sergey Yarkov 2022-08-20 18:12:35 +03:00
parent 72879b82de
commit 00c8da09a2
4 changed files with 19 additions and 18 deletions

View File

@ -15,7 +15,7 @@ Personal website created with Astro.
- [x] Form handling via [Netlify Forms](https://www.netlify.com/products/forms/)
- [x] Comment system via [utterances](https://utteranc.es/)
- [x] RSS Feed for articles
- [ ] SEO optimized
- [x] SEO optimized
## License

View File

@ -1,6 +1,6 @@
import solid from "@astrojs/solid-js";
// import image from "@astrojs/image";
// import compress from 'astro-compress'
import compress from "astro-compress";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import { defineConfig } from "astro/config";
@ -33,6 +33,7 @@ export default defineConfig({
},
}),
// image(),
compress(),
mdx({
remarkPlugins: [remarkGfm, remarkSmartypants],
rehypePlugins: [

28
package-lock.json generated
View File

@ -18,7 +18,7 @@
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"astro": "^1.0.6",
"astro-compress": "^1.0.1",
"astro-compress": "^1.0.3",
"astro-icon": "^0.7.3",
"eslint": "^8.22.0",
"eslint-plugin-solid": "^0.7.1",
@ -33,7 +33,7 @@
"rehype-slug": "^5.0.1",
"remark-gfm": "^3.0.1",
"remark-smartypants": "^2.0.0",
"sass": "^1.54.4",
"sass": "^1.54.5",
"solid-js": "^1.4.8"
}
},
@ -1641,9 +1641,9 @@
}
},
"node_modules/astro-compress": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/astro-compress/-/astro-compress-1.0.1.tgz",
"integrity": "sha512-6w8n4KF5KbvEp86E5uUsRMB1uWNz04gml9EkyDXi5+7r8NKG/efOu+TVyhIaj7QWDevdDXLYPrMH//9HyNtCWA==",
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/astro-compress/-/astro-compress-1.0.3.tgz",
"integrity": "sha512-ap6nWvEP8itiitrrmfJ9POPWRmRIL21L0sQ6pDlsPRTGQt+4C3VtvfbXRWYDjU86eRgEbZIrUa8wRufkvhwSyw==",
"dev": true,
"dependencies": {
"csso": "5.0.5",
@ -7979,9 +7979,9 @@
"dev": true
},
"node_modules/sass": {
"version": "1.54.4",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.54.4.tgz",
"integrity": "sha512-3tmF16yvnBwtlPrNBHw/H907j8MlOX8aTBnlNX1yrKx24RKcJGPyLhFUwkoKBKesR3unP93/2z14Ll8NicwQUA==",
"version": "1.54.5",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.54.5.tgz",
"integrity": "sha512-p7DTOzxkUPa/63FU0R3KApkRHwcVZYC0PLnLm5iyZACyp15qSi32x7zVUhRdABAATmkALqgGrjCJAcWvobmhHw==",
"dev": true,
"dependencies": {
"chokidar": ">=3.0.0 <4.0.0",
@ -10796,9 +10796,9 @@
}
},
"astro-compress": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/astro-compress/-/astro-compress-1.0.1.tgz",
"integrity": "sha512-6w8n4KF5KbvEp86E5uUsRMB1uWNz04gml9EkyDXi5+7r8NKG/efOu+TVyhIaj7QWDevdDXLYPrMH//9HyNtCWA==",
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/astro-compress/-/astro-compress-1.0.3.tgz",
"integrity": "sha512-ap6nWvEP8itiitrrmfJ9POPWRmRIL21L0sQ6pDlsPRTGQt+4C3VtvfbXRWYDjU86eRgEbZIrUa8wRufkvhwSyw==",
"dev": true,
"requires": {
"csso": "5.0.5",
@ -15223,9 +15223,9 @@
"dev": true
},
"sass": {
"version": "1.54.4",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.54.4.tgz",
"integrity": "sha512-3tmF16yvnBwtlPrNBHw/H907j8MlOX8aTBnlNX1yrKx24RKcJGPyLhFUwkoKBKesR3unP93/2z14Ll8NicwQUA==",
"version": "1.54.5",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.54.5.tgz",
"integrity": "sha512-p7DTOzxkUPa/63FU0R3KApkRHwcVZYC0PLnLm5iyZACyp15qSi32x7zVUhRdABAATmkALqgGrjCJAcWvobmhHw==",
"dev": true,
"requires": {
"chokidar": ">=3.0.0 <4.0.0",

View File

@ -28,7 +28,7 @@
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"astro": "^1.0.6",
"astro-compress": "^1.0.1",
"astro-compress": "^1.0.3",
"astro-icon": "^0.7.3",
"eslint": "^8.22.0",
"eslint-plugin-solid": "^0.7.1",
@ -43,7 +43,7 @@
"rehype-slug": "^5.0.1",
"remark-gfm": "^3.0.1",
"remark-smartypants": "^2.0.0",
"sass": "^1.54.4",
"sass": "^1.54.5",
"solid-js": "^1.4.8"
}
}