-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
eleventy.cjs
34 lines (28 loc) · 1.07 KB
/
eleventy.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const EleventySveltePlugin = require("./11ty/SveltePlugin.cjs");
const EleventyVuePlugin = require("./11ty/VuePlugin.cjs");
const EleventyPreactPlugin = require("./11ty/PreactPlugin.cjs");
const EleventyIslandMarkdownPlugin = require("./11ty/MarkdownPlugin.cjs");
module.exports = function(eleventyConfig) {
eleventyConfig.setQuietMode(true);
eleventyConfig.addPassthroughCopy("lib/**/*.{css,png,svg,js}");
eleventyConfig.addPassthroughCopy("demo/**/*.{css,js}");
eleventyConfig.addPassthroughCopy("*.js");
eleventyConfig.setServerOptions({
domdiff: false,
});
eleventyConfig.ignores.add("README.md");
eleventyConfig.addPlugin(EleventySveltePlugin);
eleventyConfig.addPlugin(EleventyVuePlugin);
eleventyConfig.addPlugin(EleventyPreactPlugin);
eleventyConfig.addPlugin(EleventyIslandMarkdownPlugin);
eleventyConfig.addGlobalData("permalink", () => {
return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`;
});
return {
dir: {
input: "demo",
},
htmlTemplateEngine: "liquid",
markdownTemplateEngine: "liquid",
}
};