#1318·purgecss

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

Author: crustametCreated Jan 17, 2025Updated Jan 17, 2025
Labelsbug

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