From 19491850dcd204c19109527be9a2e51d3407f476 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Thu, 14 Sep 2023 14:19:30 +0100 Subject: [PATCH] Ensure Sass `$govuk-assets-path` is patched --- lib/build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/build.js b/lib/build.js index 7083e6986f..8463b6d690 100644 --- a/lib/build.js +++ b/lib/build.js @@ -141,6 +141,7 @@ function sassVariables (contextPath = '', isLegacyGovukFrontend = false) { // Patch missing 'init.scss' before GOV.UK Frontend v4.4.0 // in plugin versions, but will default to false for internal if (isLegacyGovukFrontend) { + fileContents += '$govuk-assets-path: $govuk-extensions-url-context + "/govuk-frontend/govuk/assets/";\n' fileContents += '$govuk-global-styles: true !default;\n' fileContents += '$govuk-new-link-styles: true !default;\n' }