-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eleventy.js
32 lines (28 loc) · 1.03 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
// Per 11ty from scratch, we have to have a module.exports definition
module.exports = (eleventyConfig) => {
// See if this helps with things that do not refresh
module.exports = function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false);
};
// Make Liquid capable of rendering "partials"
eleventyConfig.setLiquidOptions({
dynamicPartials: true,
strict_filters: true,
});
// Pass "static" things straight through from "src" to "dist"
eleventyConfig.addPassthroughCopy("./src/static/");
// Tailwind stuff
eleventyConfig.addShortcode("version", function () {
return String(Date.now());
});
// Because we're running PostCSS as a separate process, Eleventy doesn't know when styles have changed
// Tell Eleventy to watch this CSS file so it can live-update changes into the browser for us
eleventyConfig.addWatchTarget("./dist/tailwindoutlive.css");
// Clarify which folder is for input and which folder is for output
return {
dir: {
input: "src",
output: "dist",
},
};
};