build(deps-dev): add jampack for performance optimization (#46)

Add new package "jampack" to devDependencies to optimize performance for production build.
This commit is contained in:
Min Adwaita
2023-03-15 17:00:48 +00:00
committed by GitHub
parent 27507d1d78
commit b9254c15f1
3 changed files with 3184 additions and 140 deletions
+3
View File
@@ -21,3 +21,6 @@ pnpm-debug.log*
# ignore .astro directory # ignore .astro directory
.astro .astro
# ignore Jampack cache files
.jampack/
+3179 -139
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
"build": "astro build", "build": "astro build && jampack ./dist",
"preview": "astro preview", "preview": "astro preview",
"sync": "astro sync", "sync": "astro sync",
"astro": "astro", "astro": "astro",
@@ -30,6 +30,7 @@
"@astrojs/react": "^2.0.2", "@astrojs/react": "^2.0.2",
"@astrojs/sitemap": "^1.0.1", "@astrojs/sitemap": "^1.0.1",
"@astrojs/tailwind": "^3.0.1", "@astrojs/tailwind": "^3.0.1",
"@divriots/jampack": "^0.9.4",
"@tailwindcss/typography": "^0.5.9", "@tailwindcss/typography": "^0.5.9",
"@types/github-slugger": "^1.3.0", "@types/github-slugger": "^1.3.0",
"@types/react": "^18.0.27", "@types/react": "^18.0.27",