Skip to content

Ability to pass dependency when styles are being processed #417

@gavinmcfarland

Description

@gavinmcfarland

Proposal

Allow dependencies to be set, so the styles being processed have access to things like global variables, class names, mixins etc.

Use Case

I’m using VuePress with PostCSS which uses postcss-loader. I want to avoid having to @import the same file in each of my components when using libraries like TailwindCSS. I've had the same use case with other frameworks. I can't find the documentation but I've heard this being known as a dependency inside a webpack loader.

Implementation

  • I'm open to work on this
  • I need help/mentorship
  • I'm unable to work on this

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions