Skip to content

Conversation

@johanmolen
Copy link
Contributor

Always import the editor.css instead of inlining it when Vite is not running hot.

For example @font-face calls require an absolute URL to the font when inlined, due to being called from within an iFrame.
I guess the same issue appears for images referenced within the CSS file.

Instead of putting absolute URL's into the CSS file we can just import the CSS file, that way it uses the hostname of the CSS file.

@github-actions github-actions bot added the php Pull requests that update PHP code label Mar 21, 2025
@Log1x Log1x merged commit 20d1d07 into roots:main Mar 27, 2025
3 checks passed
@Log1x
Copy link
Member

Log1x commented Mar 27, 2025

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

php Pull requests that update PHP code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants