From 98365018fba8745993f62a9e3fe72dd8cdfde5dd Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 27 Jan 2023 08:24:03 -0600 Subject: [PATCH] Code cleanup --- _includes/layouts/base.njk | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index a6e6e7e..cebf438 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -18,23 +18,24 @@ 1. External files (best with local dev server live reload) - - - - + + + + - 2. Inlined (speediest in production) + 2. Inlined (fastest site performance in production) #} - + {# - 3. Concatenate CSS to one file (slower than 2 but faster than 1): + 3. You could even swap between the two methods above using {% if eleventy.env.runMode === "serve" %} + 4. Concatenate CSS to one file (site performance is slower than 2 but faster than 1): https://www.11ty.dev/docs/quicktips/concatenate/ - 4. Use a bundler + 5. Use a bundler e.g. Vite https://www.11ty.dev/docs/server-vite/ Or search for additional community plugins for esbuild, rollup, webpack, etc. #}