Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

"Files" Syntax for wildcard #3

@kohlthaver

Description

@kohlthaver

Does the "files" array always convert one source css file to one target file? Or can you give an example on how to use wildcards here (if possible with purgcss, like in the "content" option)

So basically what I want is:

  • Purge any css file in given directory structure and output every file (with the same name) to specified output directory

Something like:

files: { 'purged_output/**/*.css': 'scr/css/**/*.css' }

Plan B would be to purge all source css files into one large (purged) css file but I couldn't get that t work, too:

files: { 'purged_output/app.css': 'scr/css/*.css' }

results in an empty output file

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions