-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to 2.4.1 lume and enable brotli
- Loading branch information
1 parent
77f78f2
commit eebf125
Showing
3 changed files
with
740 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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( | ||
{ | ||
|
@@ -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"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": { | ||
|
Oops, something went wrong.