add jampack optimizations
This commit is contained in:
parent
279a10b13e
commit
80b199a361
5 changed files with 4957 additions and 72 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -44,3 +44,6 @@ jspm_packages
|
|||
|
||||
# Ignore build
|
||||
/_site
|
||||
|
||||
# ignore jamstack cache
|
||||
/.jamstack
|
||||
|
|
|
@ -8,6 +8,7 @@ RUN chown -R node:node .
|
|||
USER node
|
||||
RUN NODE_ENV=development npm ci
|
||||
RUN npm run build
|
||||
RUN npm run optimize
|
||||
|
||||
# serve compiled files with local nginx config
|
||||
FROM nginx:alpine
|
||||
|
|
8
jampack.config.js
Normal file
8
jampack.config.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
export default {
|
||||
image: {
|
||||
max_width: 1920,
|
||||
misc: {
|
||||
prefetch_links: 'in-viewport'
|
||||
}
|
||||
}
|
||||
}
|
5015
package-lock.json
generated
5015
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -11,6 +11,7 @@
|
|||
"postbuild": "npm run postbuild:styles && npm run postbuild:highlighttheme",
|
||||
"postbuild:highlighttheme": "cp ./node_modules/@catppuccin/highlightjs/css/catppuccin.variables.css ./_site",
|
||||
"postbuild:styles": "npx tailwindcss -i styles.css -o _site/styles.css --env production",
|
||||
"optimize": "jampack _site",
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"deploy": "docker compose up --build -d"
|
||||
},
|
||||
|
@ -28,6 +29,7 @@
|
|||
"@11ty/eleventy-plugin-syntaxhighlight": "^3.1.3",
|
||||
"@catppuccin/highlightjs": "^0.1.4",
|
||||
"@catppuccin/tailwindcss": "^0.1.6",
|
||||
"@divriots/jampack": "^0.23.3",
|
||||
"autoprefixer": "^10.3.7",
|
||||
"cssnano": "^5.0.8",
|
||||
"dayjs": "^1.11.10",
|
||||
|
|
Loading…
Add table
Reference in a new issue