-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eleventy-plugin-styles): fixed URL selection with in Critical
docs(eleventy-plugin-styles): updated CHANGELOG.MD
- Loading branch information
1 parent
8013680
commit 6d635d4
Showing
4 changed files
with
20 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
- Added query hash to style URL. | ||
|
||
## [1.4.4] - 2021-08-17 | ||
## [1.4.4] - 2022-08-17 | ||
|
||
### Fixed | ||
|
||
|
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,9 @@ | ||
/** Match stylesheet link and get URL of file from HTML. */ | ||
export const STYLESHEET_LINK_REGEXP = | ||
/<link\s+[^>]*href=(?:'|")([^"]+\.(?:css|scss|sass|less))(?:'|")[^>]*>/g; | ||
|
||
export const STYLESHEET_LINK_WITH_HASH_REGEXP = | ||
/<link\s+[^>]*href=(?:'|")([^"]+\.(?:css|scss|sass|less)(?:\?\w*)?)(?:'|")[^>]*>/g; | ||
|
||
export const CLEAR_STYLE_LINK_REGEXP = | ||
/(.+?\.(?:css|scss|sass|less))\?[a-zA-Z0-9]+/; |
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