purgecss icon indicating copy to clipboard operation
purgecss copied to clipboard

--out not producing the output file

Open noblesilence opened this issue 6 years ago • 5 comments

I run this command in my project folder:

purgecss --css css/bootstrap.min.css --content ./*.html --out build/css

But it is not producing the output file. It just returns CSS code.

What's wrong?

noblesilence avatar Jan 21 '20 05:01 noblesilence

Does it work if you use --output instead of --out?

jannisborgers avatar Jan 21 '20 11:01 jannisborgers

Does it work if you use --output instead of --out?

No, it doesn't. It gives me another error. (node:4777) ExperimentalWarning: The fs.promises API is experimental

noblesilence avatar Jan 22 '20 14:01 noblesilence

image

noblesilence avatar Jan 22 '20 14:01 noblesilence

I got another error unknown option '--out' if I change from *.html to index.html.

noblesilence avatar Jan 22 '20 14:01 noblesilence

There was an error in the documentation. The option is --output.

Ffloriel avatar Jan 27 '20 19:01 Ffloriel