From c3629f9cf611653c30cf6599a243a8ac1af59928 Mon Sep 17 00:00:00 2001 From: Wes Dean <87149725+wesley-dean-gsa@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:09:50 -0400 Subject: [PATCH] Update .eleventy.js Add a passThroughCopy to take stuff from `_img/favicon` folder and put them in the root of the built site. --- .eleventy.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 2cf00ac6..df8b62b4 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -13,11 +13,34 @@ const { imageShortcode, imageWithClassShortcode } = require('./config'); module.exports = function (config) { // Set pathPrefix for site - let pathPrefix = '/'; + let pathPrefix = '/';22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 + // Copy the `admin` folders to the output config.addPassthroughCopy('admin'); + // for #80 (update site favicon) + // copy files from `_img/favicon/` to `_site/` + eleventyConfig.addPassthroughCopy({ "_img/favicon": "/" }); + // Copy USWDS init JS so we can load it in HEAD to prevent banner flashing config.addPassthroughCopy({'./node_modules/@uswds/uswds/dist/js/uswds-init.js': 'assets/js/uswds-init.js'});