-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update build asset handling. delete the asset paths manifest since that is an artifact of the build. - Remove `--use` flag from postcss command. Set env for federalist command. The `--use` flag in the postcss command was causing issues with inline source maps. By updating the command, we ensure better compatibility and cleaner builds. - Set ELEVENTY_ENV to production for federalist script prevent blank space in rendered HTML file output and delete preload - Write uswds fonts to manifest file so they can be preloaded Added logic to include .woff2 font files in asset path generation. The new code filters and maps font files, preserving consistent naming and paths, then integrates them into the existing assets object. This ensures all necessary assets, including fonts, are correctly referenced in the output JSON. - Preload fonts needed for the critical rendering path - add build step to packages to avoid an unstyled page on the first run of `dev` - add uswds-init.js to a file that is in the build pipeline so it can be hashed and cached. - split getFonts out to its own function. - remove comment - update production build name
- Loading branch information
1 parent
db4c632
commit c714326
Showing
9 changed files
with
68 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,3 +120,4 @@ web_modules/ | |
_site | ||
public | ||
node_modules | ||
_data/assetPaths.json |
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
require('../node_modules/@uswds/uswds/dist/js/uswds-init'); |
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,7 @@ | ||
module.exports = { | ||
plugins: [require('autoprefixer')], | ||
}; | ||
plugins: [ | ||
require('autoprefixer')({ | ||
map: process.env.ELEVENTY_ENV !== 'production' | ||
}), | ||
], | ||
}; |