Skip to content

[Bug]: Cannot run purgecss command line without a config file #1318

@crustamet

Description

@crustamet

Describe the bug

Cannot run purgecss without a config file

purgecss $cssAsset -content $htmlFile -o /var/www/html

returning error "Error loading the config file Cannot find module"

For sure it returns this error because I don't have one, and it shouldn't need one.

If this is a bug please write the requirements of how to use the command line

because there is nothing explaining that this needs a config file and for sure it should not need one.

To Reproduce

purgecss /var/www/html/asset.css -content /var/www/html/index.html -o /var/www/html

Expected Behavior

it should purge the css into the output folder

Environment

Ubuntu 22 with nodejs 22

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions