Skip to content

[Bug]: No files found from the passed PurgeCSS option 'content'. #1104

@diegohaz

Description

@diegohaz

Describe the bug

On v6.0.0-alpha.0, when passing raw content, there's a warning saying no files were found:

No files found from the passed PurgeCSS option 'content'.

I understand this makes sense when passing file names, but not when using raw.

To Reproduce

  1. Open https://stackblitz.com/edit/node-rc7yl6?file=index.js
  2. Run node index.js in the terminal

Expected Behavior

No warning

Environment

OS: macOS, Package: purgecss, Version: v6.0.0-alpha.0

Add any other context about the problem here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions