Skip to content

Batch suffix error under Windows 10 #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jakubpawlowicz opened this issue Mar 29, 2021 · 2 comments
Closed

Batch suffix error under Windows 10 #66

jakubpawlowicz opened this issue Mar 29, 2021 · 2 comments

Comments

@jakubpawlowicz
Copy link
Collaborator

Reported by @jasonreiche in #65

When I run the command above currently under Windows 10 PS, using double or single quotes, I get this error:

error: option '--batch-suffix ' argument missing

Running it without --batch-suffix results in files being created in place under source/

@jakubpawlowicz
Copy link
Collaborator Author

I tested this on Windows 10 with Node.js 14 and empty double quotes work for me, i.e.

cleancss --batch --batch-suffix "" path/to/css/file

correctly replaces CSS files in place.

Using a pair of single quotes, e.g --batch-suffix '' causes cleancss to treat that pair of single quotes as a suffix resulting in files like reset''.css.

I'm going to add that info to Readme.

Please retest if possible and let me know if this has to be reopened.

@ohaeusler
Copy link

ohaeusler commented Apr 21, 2022

I'll add something about this:

For me, this occurred even using double quotes. Using --batch-suffix '""' was the solution for me.
@jakubpawlowicz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants