-
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.
- Loading branch information
1 parent
b2bb7ff
commit 4e8fe84
Showing
1 changed file
with
6 additions
and
7 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 |
---|---|---|
|
@@ -19,8 +19,8 @@ import source_maps from "lume/plugins/source_maps.ts"; | |
import sri from "lume/plugins/sri.ts"; | ||
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 picture from "lume/plugins/picture.ts"; | ||
// import transformImages from "lume/plugins/transform_images.ts"; | ||
import brotli from "lume/plugins/brotli.ts"; | ||
import onDemand from "lume/plugins/on_demand.ts"; | ||
|
||
|
@@ -55,11 +55,10 @@ site.use(source_maps()); | |
site.use(sri()); | ||
site.use(terser()); | ||
site.use(phosphor()); | ||
site.use(picture(/* Options */)); | ||
site.use(transformImages({ | ||
cache: true, // Toggle cache | ||
matches: /\.(jpg|jpeg|png|webp)$/i, // This regex matches only image files | ||
})); | ||
// site.use(picture(/* Options */)); | ||
// site.use(transformImages({ | ||
// cache: true, // Toggle cache | ||
// })); | ||
site.use(brotli()); | ||
site.use(onDemand({ | ||
extraData(request: Request) { | ||
|