2022-10-03 00:02:47 +00:00
|
|
|
import lume from "https://deno.land/x/lume/mod.ts";
|
|
|
|
import sass from "https://deno.land/x/lume/plugins/sass.ts";
|
|
|
|
import date from "https://deno.land/x/lume/plugins/date.ts";
|
|
|
|
import jsx from "https://deno.land/x/lume/plugins/jsx.ts";
|
|
|
|
import terser from "https://deno.land/x/lume/plugins/terser.ts";
|
|
|
|
import postcss from "https://deno.land/x/lume/plugins/postcss.ts";
|
2022-10-02 18:46:42 +00:00
|
|
|
|
|
|
|
const site = lume();
|
|
|
|
|
2022-10-03 00:02:47 +00:00
|
|
|
site.use(sass({
|
|
|
|
includes: ['_includes'],
|
|
|
|
}));
|
2022-10-02 18:46:42 +00:00
|
|
|
site.use(date());
|
|
|
|
site.use(jsx());
|
|
|
|
site.use(terser());
|
|
|
|
site.use(postcss());
|
|
|
|
|
|
|
|
site.loadAssets([
|
|
|
|
".png",
|
|
|
|
".jpg",
|
|
|
|
".svg",
|
|
|
|
".pdf",
|
|
|
|
".woff2",
|
|
|
|
".woff",
|
|
|
|
".ttf",
|
|
|
|
".otf",
|
|
|
|
".js",
|
|
|
|
".txt",
|
|
|
|
]);
|
|
|
|
|
2022-10-03 16:56:34 +00:00
|
|
|
site.ignore("README.md", "CHANGELOG.md", "LICENSE.md");
|
|
|
|
|
2022-10-02 18:46:42 +00:00
|
|
|
export default site;
|