-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
CSS url directive allows the url to be enclosed in single or double quotes. Currently, webpack processors removes quotes before the theme-generator is used, but this does not happen with Vite, so URLs are set on the link elements by createLinkReferences function with quotes and this leads to an HTTP 404 error because the browser adds the base url to the contents of the directive. This change modifies the regular expression that matches urls, so that the quotes are not part of the capturing group used to get the url.
- Loading branch information
1 parent
b6d3aef
commit f89213c
Showing
4 changed files
with
31 additions
and
8 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
2 changes: 2 additions & 0 deletions
2
flow-tests/test-frontend/vite-basics/frontend/themes/vite-basics/styles.css
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,5 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Itim'); | ||
|
||
h2 { | ||
color: blue; | ||
} | ||
|
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