diff --git a/.eleventy.js b/.eleventy.js deleted file mode 100644 index c01cf8f..0000000 --- a/.eleventy.js +++ /dev/null @@ -1,45 +0,0 @@ -const htmlmin = require("html-minifier"); -const fg = require("fast-glob"); -const svgContents = require("eleventy-plugin-svg-contents"); - -module.exports = function (eleventyConfig) { - eleventyConfig.setUseGitIgnore(false); - eleventyConfig.addPassthroughCopy("images"); - eleventyConfig.addPassthroughCopy("icons"); - - // Custom files - eleventyConfig.addPassthroughCopy("./site.webmanifest"); - eleventyConfig.addPassthroughCopy("./social.png"); - - eleventyConfig.addWatchTarget("./_tmp/style.css"); - - eleventyConfig.addPassthroughCopy({ "./_tmp/style.css": "./style.css" }); - - eleventyConfig.addPassthroughCopy({ - "./node_modules/alpinejs/dist/alpine.js": "./js/alpine.js", - "./node_modules/clipboard/dist/clipboard.min.js": "./js/clipboard.js", - }); - - eleventyConfig.addPlugin(svgContents); - - eleventyConfig.addShortcode("version", function () { - return String(Date.now()); - }); - - eleventyConfig.addTransform("htmlmin", function (content, outputPath) { - if ( - process.env.ELEVENTY_PRODUCTION && - outputPath && - outputPath.endsWith(".html") - ) { - let minified = htmlmin.minify(content, { - useShortDoctype: true, - removeComments: true, - collapseWhitespace: true, - }); - return minified; - } - - return content; - }); -}; diff --git a/.eleventyignore b/.eleventyignore deleted file mode 100644 index 4400aea..0000000 --- a/.eleventyignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -README.md \ No newline at end of file