Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Not working with style-loader #418

@igor-ribeiro

Description

@igor-ribeiro

I'm using style-loader and it generates multiple <style> tags. I have 2 files:

/* theme.css */
:root {
  --text-color: red;
}

/* App.css */
.App {
  color: var(--text-color);
}

The cssnext removes the theme.css tag and doesn't apply the variable value.

With cssnext:
image

Without cssnext:
image

It warns: ./src/App.css (Emitted value instead of an instance of Error) postcss-custom-properties. variable '--text-color' is undefined and used without a fallback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions