-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[astro-purgecss] Fix race-condition in renaming css files (#662)
* [astro-purgecss] Fix race-condition in calls to replaceValueInFile - fix #660 Ensure that all CSS file references needing to be updated are done before saving HTML files. The process has been refactored in order to: * read HTML files only once * replace all CSS file references which need to be changed (for loop) * write updated HTML file to disk. As a side-effect, build performance should also be improved (previous version was reading and writing file each time a CSS file reference had to be updated). * [docs] correct changeset command * docs(changeset): Fix race-condition in calls to replaceValueInFile * fix tests
- Loading branch information
Showing
5 changed files
with
81 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro-purgecss': patch | ||
--- | ||
|
||
Fix race-condition in calls to replaceValueInFile |
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