28 lines
666 B
JavaScript
28 lines
666 B
JavaScript
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
|
|
|
module.exports = function(eleventyConfig){
|
|
|
|
eleventyConfig.setServerPassthroughCopyBehavior("passthrough");
|
|
eleventyConfig.addPassthroughCopy({
|
|
"./node_modules/@picocss/pico/css/pico.min.*": "./",
|
|
}, {debug: true})
|
|
|
|
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
|
|
|
eleventyConfig.addFilter(
|
|
"debug",
|
|
(content) =>
|
|
`<pre>
|
|
${require("node:util").inspect(content)}
|
|
</pre>`
|
|
);
|
|
|
|
eleventyConfig.addDataExtension("yml, yaml",
|
|
contents => require('js-yaml').load(contents)
|
|
)
|
|
|
|
if(process.env.NODE_ENV==="production"){
|
|
eleventyConfig.addGlobalData('date', 'git Last Modified');
|
|
}
|
|
}
|