Skip to content

Inserts runtime styles at the given position #1825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
liamqma opened this issue Apr 2, 2025 · 1 comment
Open

Inserts runtime styles at the given position #1825

liamqma opened this issue Apr 2, 2025 · 1 comment

Comments

@liamqma
Copy link
Collaborator

liamqma commented Apr 2, 2025

Is your feature request related to a problem? Please describe.

By default, the runtime styles are inserted at the bottom of document.head in the following manner: source code reference.

However, there are circumstances where more control over the append target is necessary. For instance, if you have extracted CSS from a different environment placed in the , you may need the runtime styles to be inserted afterward to ensure they take precedence.

Describe the solution you'd like

I propose adopting an approach similar to MiniCssExtractPlugin's insert option and applying it to Compiled. This would provide developers with the ability to specify where runtime styles should be inserted, allowing for greater control and ensuring the correct CSS precedence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@liamqma and others