2023-03-01 18:47:59 +00:00
|
|
|
const eleventySass = require("@11tyrocks/eleventy-plugin-sass-lightningcss")
|
|
|
|
|
|
|
|
module.exports = function (eleventyConfig) {
|
2023-03-02 06:14:57 +00:00
|
|
|
|
2023-03-01 18:47:59 +00:00
|
|
|
eleventyConfig.addPlugin(eleventySass)
|
|
|
|
|
2023-03-01 22:32:20 +00:00
|
|
|
eleventyConfig.setServerPassthroughCopyBehavior("passthrough")
|
2023-03-02 04:34:36 +00:00
|
|
|
|
|
|
|
eleventyConfig.addPassthroughCopy({
|
|
|
|
"node_modules/alpinejs/dist/cdn.min.js": "js/alpine.js"
|
|
|
|
})
|
|
|
|
|
2023-03-01 22:32:20 +00:00
|
|
|
eleventyConfig.addPassthroughCopy("src/js/**/*.js")
|
2023-03-02 01:14:28 +00:00
|
|
|
eleventyConfig.addPassthroughCopy({ "static": "/" })
|
2023-03-01 22:32:20 +00:00
|
|
|
|
2023-03-02 08:35:56 +00:00
|
|
|
eleventyConfig.addFilter("formatNumber", number => number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "));
|
|
|
|
|
2023-03-01 18:47:59 +00:00
|
|
|
return {
|
2023-03-01 19:19:57 +00:00
|
|
|
htmlTemplateEngine: "njk",
|
2023-03-01 18:47:59 +00:00
|
|
|
dir: {
|
|
|
|
input: "src",
|
|
|
|
output: "public",
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|