Skip to content

Commit

Permalink
upgrade to 2.4.1 lume and enable brotli
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Nov 8, 2024
1 parent 77f78f2 commit eebf125
Show file tree
Hide file tree
Showing 3 changed files with 740 additions and 502 deletions.
3 changes: 3 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import terser from "lume/plugins/terser.ts";
import phosphor from "https://deno.land/x/[email protected]/phosphor.ts";
import picture from "lume/plugins/picture.ts";
import transformImages from "lume/plugins/transform_images.ts";
import brotli from "lume/plugins/brotli.ts";


const site = lume(
{
Expand Down Expand Up @@ -58,6 +60,7 @@ site.use(transformImages({
cache: true, // Toggle cache
matches: /\.(jpg|jpeg|png|webp)$/i // This regex matches only image files
}));
site.use(brotli());

//site.copy("assets", "assets");
site.copy("static/portfolio", "portfolio");
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"lume/": "https://deno.land/x/lume@v2.3.3/",
"lume/": "https://deno.land/x/lume@v2.4.1/",
"lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/[email protected]/"
},
"tasks": {
Expand Down
Loading

0 comments on commit eebf125

Please sign in to comment.