mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-26 10:21:54 +00:00
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
const eleventySass = require("eleventy-sass");
|
|
//const gsap = require('gsap');
|
|
const lazyImagesPlugin = require('eleventy-plugin-lazyimages');
|
|
|
|
module.exports = function (eleventyConfig) {
|
|
|
|
// passthrus
|
|
//eleventyConfig.addPassthroughCopy("./src/assets/styles");
|
|
|
|
eleventyConfig.addPassthroughCopy('src/assets/fonts');
|
|
eleventyConfig.addPassthroughCopy("./src/assets/js");
|
|
eleventyConfig.addPassthroughCopy('src/assets/images/**/*.png');
|
|
eleventyConfig.addPassthroughCopy('src/assets/images/**/*.svg');
|
|
eleventyConfig.addPassthroughCopy('src/assets/images/**/*.jpg');
|
|
eleventyConfig.addPassthroughCopy('src/assets/images/**/*.gif');
|
|
|
|
//eleventyConfig.addNunjucksFilter('bitcoin', arr => arr.filter(e => e.name == 'Synapse'));
|
|
|
|
//plugins
|
|
eleventyConfig.addPlugin(eleventySass);
|
|
|
|
// eleventyConfig.addPlugin(lazyImagesPlugin, {
|
|
// imgSelector: 'img:not(.unlazy)', // custom image selector
|
|
// //cacheFile: '', // don't cache results to a file
|
|
// });
|
|
|
|
return {
|
|
dir: { input: "src", output: "_site", data: "_data" },
|
|
};
|
|
};
|