From 4b84a135976183e7fae8857b222929306a1af2ad Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Thu, 23 Sep 2021 18:56:13 +0530 Subject: make it ready to deploy --- eleventy.config.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'eleventy.config.js') diff --git a/eleventy.config.js b/eleventy.config.js index b2e2a5b..9adfcf0 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -8,19 +8,6 @@ module.exports = eleventyConfig => { typographer: true }).use(require('markdown-it-attrs'))) - eleventyConfig.addTransform('htmlmin', (content, outputPath) => { - if (outputPath && outputPath.endsWith('.html')) { - const minified = require("html-minifier").minify(content, { - useShortDoctype: true, - removeComments: true, - collapseWhitespace: true - }) - return minified - } - - return content - }) - const { DateTime } = require('luxon') eleventyConfig.addFilter('datefmt', date => { return DateTime.fromJSDate(date, { zone: 'utc' }).toFormat("dd LLL yyyy"); -- cgit v1.2.3-70-g09d2