Skip to content

[Feature Request] Import CSS using the package.json main attribute #101

@oleersoy

Description

@oleersoy

Hi,

I'm creating pure css packages (superfly-css). The workflow I'm using looks like this:

  1. Create new public github repository
  2. Clone the repository
  3. Run npm init
  4. Add the style attribute to package.json
  5. Publish to NPM

If postcss-import read the main attribute for the css file that the package publishes, it would allow me to skip step 4. Right now the main attribute duplicates the style attribute.

Thoughts?

TIA,
Ole

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