Skip to content

Commit

Permalink
Update eleventy-auto-cache-buster to v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminEHowe committed Jul 13, 2024
1 parent 2bdb0c1 commit 7239eaf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ let targets = browserslistToTargets(browserslist("> 0.2% and not dead"));
export default async function (eleventyConfig) {
eleventyConfig.addDataExtension("json", (contents) => JSON.parse(contents) );

eleventyConfig.addPlugin(eleventyAutoCacheBuster);
eleventyConfig.addPlugin(eleventyAutoCacheBuster, {
hashTruncate: 8,
});

eleventyConfig.addTransform("htmlmin", function (content) {
if ((this.page.outputPath || "").endsWith(".html")) {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@11ty/eleventy": "3.0.0-alpha.14",
"browserslist": "^4.23.2",
"eleventy-auto-cache-buster": "^0.3.0",
"eleventy-auto-cache-buster": "^0.4.0",
"html-minifier-terser": "^7.2.0",
"lightningcss": "^1.25.1",
"wrangler": "^3.64.0"
Expand Down

0 comments on commit 7239eaf

Please sign in to comment.