coderaiser / minify

Minifier of js, css, html and img
https://coderaiser.github.io/minify
MIT License
228 stars 29 forks source link

Support reading from STDIN instead of a file #29

Closed mcandre closed 9 years ago

mcandre commented 9 years ago

As a Unix user, I want minify to treat the fielname - to mean read from STDIN rather than a file, so that I can pipe data directly to minify without having to save it in a file.

coderaiser commented 9 years ago

But you could do this. As Command Line part of minify site says. You could do such things this way:

cat client.js | minify -js
cat *.css | minify -css

Anyway you should specify what type of file you going to minify.

mcandre commented 9 years ago

Thanks for pointing that out, I should have read the docs better.