Skip to content

Commit

Permalink
try removing image-related plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Nov 17, 2024
1 parent b2bb7ff commit 4e8fe84
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4e8fe84

Please sign in to comment.