nzakas / cssembed

A tool for embedding data URIs in CSS files.
http://www.nczonline.net/
389 stars 30 forks source link

Add option to make the changes directly in the input file #13

Open mlauritse opened 14 years ago

mlauritse commented 14 years ago

An option like "--modify", to indicate that the input file should be modified directly (inspired by "tidy") would be useful.

It is of course possible to do this by having cssembed write to a temporary file and then replacing the input file by the temporary file, but this is a bit clumsy and error-prone.

Thanks for a great utility! Morten

nzakas commented 14 years ago

I think you can do this by specifying the same input and output file. I'll double-check.

tivac commented 13 years ago

This is old, but felt like chiming in.

Nicholas is correct, if you specify the same input & output file name cssembed will overwrite the original file.