-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eleventy.js
32 lines (26 loc) · 1.04 KB
/
.eleventy.js
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
const stencil = require("@umich-lib/components/hydrate");
module.exports = function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addPassthroughCopy("static");
eleventyConfig.addPassthroughCopy("styles");
// eleventyConfig.addPassthroughCopy('js');
eleventyConfig.addPassthroughCopy('dist');
eleventyConfig.addPassthroughCopy('templates/debug.qui.xsl');
eleventyConfig.addPassthroughCopy('samples/qui');
eleventyConfig.addPassthroughCopy('samples/data');
// --- setUseGitIgnore(false) we shouldn't need these
// eleventyConfig.addPassthroughCopy('samples/qbat');
// eleventyConfig.addPassthroughCopy('samples/index.html');
// Server side rendering for @umich-lib/components.
// eleventyConfig.addTransform("ssr", async (content, outputPath) => {
// if (outputPath.endsWith(".html")) {
// try {
// const { html } = await stencil.renderToString(content);
// return html;
// } catch (error) {
// return error;
// }
// }
// return content;
// });
};