Skip to content

Commit

Permalink
Ensure Sass $govuk-assets-path is patched
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Sep 14, 2023
1 parent f00177e commit 1949185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 1949185

Please sign in to comment.