-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We've replaced Uglifier with Terser. Components that contain code from GOV.UK Frontend have been moved to a separate file, es6-components.js. This approach is used to prevent Grade X Browsers evaluating JavaScript that isn't supported by adding the type=”module” attribute to the script tag.
- Loading branch information
1 parent
752bc51
commit a8d387d
Showing
6 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//= link_tree ../images | ||
//= link_tree ../builds | ||
//= link application.js | ||
//= link es6-components.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// These modules from govuk_publishing_components | ||
// depend on govuk-frontend modules. govuk-frontend | ||
// now targets browsers that support `type="module"`. | ||
// | ||
// To gracefully prevent execution of these scripts | ||
// on browsers that don't support ES6, this script | ||
// should be included in a `type="module"` script tag | ||
// which will ensure they are never loaded. | ||
|
||
//= require govuk_publishing_components/components/button | ||
//= require govuk_publishing_components/components/checkboxes | ||
//= require govuk_publishing_components/components/error-summary | ||
//= require govuk_publishing_components/components/layout-header | ||
//= require govuk_publishing_components/components/radio | ||
//= require govuk_publishing_components/components/skip-link | ||
//= require govuk_publishing_components/components/tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters