Skip to content

Add postcss-use plugin #213

Closed
marcusrc/create-react-app
#1
@Jabher

Description

@Jabher

And one more thing for today 😅

I think it would be nice to add postcss-use plugin into build pipeline.
I think it will organically fit with package core idea - "zero-configuration". So for current builds nothing will actually change, no new filesystem APIs, no additional keys in CLI, however, the ability to use postcss plugins will suddenly appear.

The thing is that by default it's all same css (OK, with autoprefixer), but you can use @use keyword to add postcss plugins.

@use cssnext;

:root {
    --background: #222;
}

.App-header {
    background-color: var(--background);
}

If that seems ligit, I already have a commit for PR - https://github.com/Jabher/create-react-app/tree/feature/postcss-use.

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