-
Notifications
You must be signed in to change notification settings - Fork 28
/
eleventy.config.js
39 lines (28 loc) · 1.44 KB
/
eleventy.config.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
33
34
35
36
37
38
39
import { EleventyRenderPlugin } from "@11ty/eleventy";
import externalLinks from "@aloskutov/eleventy-plugin-external-links";
import registerExtensions from "./11ty-extensions/index.js";
export default function(eleventyConfig) {
eleventyConfig.addPassthroughCopy({"./src/assets/": "assets"});
eleventyConfig.addPassthroughCopy({"./node_modules/font-awesome/css": "assets/font-awesome/css"});
eleventyConfig.addPassthroughCopy({"./node_modules/font-awesome/fonts": "assets/font-awesome/fonts"});
eleventyConfig.addPassthroughCopy({"./node_modules/highlight.js/styles/atom-one-light.min.css": "styles/highlight.js-atom-one-light.min.css"});
eleventyConfig.addPassthroughCopy({"./client-side-compiled/**/*": "scripts"});
eleventyConfig.addPassthroughCopy({"./styles-compiled/**/*": "styles"});
eleventyConfig.addPassthroughCopy({"./src/copy-to-root/*": "."});
/* If you have any libs being pulled from node_modules you might do it like below */
eleventyConfig.addPassthroughCopy({"./node_modules/lunr/lunr.min.js": "scripts/libs/lunr.min.js"});
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.setDataDeepMerge(false);
eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.addPlugin(externalLinks, {overwrite: false});
eleventyConfig.setServerOptions({
showAllHosts: true
});
eleventyConfig.setWatchThrottleWaitTime(100);
registerExtensions(eleventyConfig);
return {
dir: {
input: "src/pages",
}
}
};