Skip to content

Commit

Permalink
Merge pull request #105 from eSolia:20250117-purgecss
Browse files Browse the repository at this point in the history
Enable purgecss per Oscar's config recommendation
  • Loading branch information
RickCogley authored Jan 17, 2025
2 parents 20865f3 + 339ffa7 commit 750cf23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { enUS } from "npm:date-fns/locale/en-US";
import { ja } from "npm:date-fns/locale/ja";
import filterPages from "lume/plugins/filter_pages.ts";
import sass from "lume/plugins/sass.ts";
// import purgecss from "lume/plugins/purgecss.ts";
import purgecss from "lume/plugins/purgecss.ts";
import lightningcss from "lume/plugins/lightningcss.ts";
import transformImages from "lume/plugins/transform_images.ts";
import picture from "lume/plugins/picture.ts";
Expand Down Expand Up @@ -79,7 +79,7 @@ site.use(pagefind());

site.use(favicon());
site.use(sass());
// site.use(purgecss());
site.use(purgecss());
site.use(lightningcss());
site.use(metas());
site.use(filterPages({
Expand Down Expand Up @@ -236,7 +236,8 @@ site.use(decapCMS({
path: "/6E77746E/",
}));

site.copy("assets");
site.copy("assets/img");
site.loadAssets([".js"]);
//site.copy("media");
// site.copy([".pdf"], (file) => "pdf" + file);
site.copy([".pdf"]);
Expand Down

0 comments on commit 750cf23

Please sign in to comment.