-
Notifications
You must be signed in to change notification settings - Fork 0
/
eleventy.config.js
33 lines (26 loc) · 1.24 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
import pluginDirectoryOutput from '@11ty/eleventy-plugin-directory-output';
import pluginRSS from '@11ty/eleventy-plugin-rss';
import pluginSyntaxHighlight from '@11ty/eleventy-plugin-syntaxhighlight';
import config from '#config/index.js';
import baseConfig from '#config/base.js';
/** @param {import('@11ty/eleventy').UserConfig} eleventyConfig */
export default function configureEleventy(eleventyConfig) {
eleventyConfig.addPlugin(baseConfig);
eleventyConfig.setQuietMode(true);
eleventyConfig.addPlugin(pluginDirectoryOutput);
eleventyConfig.addPlugin(pluginSyntaxHighlight);
eleventyConfig.addPlugin(pluginRSS);
// configure the `src/assets` directory to be copied into our build without
// Eleventy processing the files. This is where all our fonts, images,
// styles, and other assets will go.
eleventyConfig.setServerPassthroughCopyBehavior('passthrough');
eleventyConfig.addPassthroughCopy(`${config.dir.input}/assets`);
// ignore the `src/styles` directory so that tailwind manages it instead
eleventyConfig.ignores.add(`${config.dir.input}/styles`);
eleventyConfig.setServerOptions({
// watch the compiled output of Tailwind
watch: [`${config.dir.input}/assets/styles.css`],
port: 2323,
});
return config;
}