mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-01-16 12:18:47 +01:00
37 lines
810 B
JavaScript
37 lines
810 B
JavaScript
const eleventySass = require("eleventy-sass");
|
|
|
|
module.exports = function (eleventyConfig) {
|
|
eleventyConfig.addPlugin(eleventySass);
|
|
|
|
eleventyConfig.addWatchTarget("./src");
|
|
eleventyConfig.addWatchTarget("./icons");
|
|
|
|
eleventyConfig.setQuietMode(true);
|
|
|
|
eleventyConfig.addLiquidTag("include_cached", function (liquidEngine) {
|
|
return {
|
|
parse: function (tagToken, remainingTokens) {
|
|
this.str = tagToken.args;
|
|
},
|
|
render: async function (scope, hash) {
|
|
var str = await this.liquid.evalValue(this.str, scope);
|
|
return str;
|
|
}
|
|
};
|
|
});
|
|
|
|
eleventyConfig.addFilter("group_by", function (value) {
|
|
return value
|
|
});
|
|
|
|
return {
|
|
pathPrefix: "/",
|
|
dir: {
|
|
input: "src",
|
|
layouts: "_layouts",
|
|
includes: "_includes"
|
|
},
|
|
};
|
|
};
|
|
|