Skip to content

Output one file for each source css file in an entry #518

Open
@elchicofrommo

Description

@elchicofrommo
  • Operating System:
  • Node Version: >6.9.0
  • NPM Version:
  • webpack Version: > 5
  • mini-css-extract-plugin Version: 0.9.0

Feature Proposal

I don't know if this would even be useful for another engineer, but I found I wanted to output all the css required in an entry point as individual files instead of a single merged file. I've done the work locally to make that function so I wanted to ask if it would be an acceptable feature add so I could contribute the work to the codebase.

Feature Use Case

The reason I wanted to be able to do this is that in my build process I have a set of scss files that aren't referenced by any entry point so I made holding file and sucked in all the scss within a context. The problem I had is that the individual files sometimes overwrote each others style choices as they were being developed by other engineers. As a solve I thought it might be nice if I could configure this plug in to spit out individual css files. Now I can have a host of SCSS files that only static html pages are using still be processed by Webpack by writing a single js file that requires all the scss to be processed.

Thoughts?

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