Skip to content

style-loader/useable: There is a need to be able to control the order of inserting styles. #326

Open
@budarin

Description

@budarin

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
When call stylesheet.use() - styles added on to a page in order as they were added - one after previous

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
React has a reverse order of calling the component (style.use() called into each component in our project) so there may be a conflict of style overrides.
Styles should be inserted in reversed order - one before previous

If this is a feature request, what is motivation or use case for changing the behavior?
there is no any other ability to control the insertion order of styles

Please mention other relevant information such as your webpack version, Node.js version and Operating System.
"webpack": "4.8.1",
"style-loader": "^0.21.0",
node: 10.0.0
OS: Windows Server 2008R2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions