forked from fullstackmb/fullstackmb.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheleventy.config.js
More file actions
26 lines (21 loc) · 754 Bytes
/
eleventy.config.js
File metadata and controls
26 lines (21 loc) · 754 Bytes
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
import { EleventyHtmlBasePlugin } from "@11ty/eleventy";
export default async function (eleventyConfig) {
// input directory
eleventyConfig.setInputDirectory("src");
// passthroughs are relative to root not input directory
eleventyConfig.addPassthroughCopy("src/images");
eleventyConfig.addPassthroughCopy("src/styles");
eleventyConfig.addPassthroughCopy("src/scripts");
eleventyConfig.addPassthroughCopy("src/CNAME");
// dev server configuraiton
eleventyConfig.setServerOptions({
watch: [
"src/**/*.liquid",
"src/**/*.css",
"src/**/*.js"
]
});
// enable HtmlBase plugin
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
};
export const config = {};