From 59b130f31fd7ebf135ef60d571c2167d037eac2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Thu, 7 Oct 2021 18:44:29 +0200 Subject: [PATCH] fix: changed config of .eleventy.js accordingly --- .eleventy.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index e8c6164..b9b967b 100755 --- a/.eleventy.js +++ b/.eleventy.js @@ -5,11 +5,9 @@ module.exports = function (eleventyConfig) { eleventyConfig.addPlugin(pluginNavigation); - eleventyConfig.addPassthroughCopy('pages/css'); - eleventyConfig.addPassthroughCopy('pages/content'); - eleventyConfig.addPassthroughCopy('assets/'); eleventyConfig.addPassthroughCopy({ "node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js", + "assets/": "./", }); if (process.env.ELEVENTY_ENV == 'prod') { @@ -19,7 +17,9 @@ module.exports = function (eleventyConfig) { let minified = htmlmin.minify(content, { useShortDoctype: true, removeComments: true, - collapseWhitespace: true + collapseWhitespace: true, + minifyJS: true, + minifyCSS: true, }); return minified; } else { @@ -35,7 +35,7 @@ module.exports = function (eleventyConfig) { return { dir: { - input: "pages" + input: "src" }, dataTemplateEngine: 'njk', htmlTemplateEngine: 'njk',