Skip to content

Inserts runtime styles at the given position #1825

@liamqma

Description

@liamqma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions