jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Can't Run from Command Line #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With V.1, I was able to hack my usage of minify a bit such that I could
pass it a list of files and it would echo the minified result out to the
command line. This no longer seems feasible (or at least is much harder) in V.2

All I want minify to do is accept a list of files, minify them, and return
the result. We have our own static server which takes care of all the fancy
encoding and header issues. Minify does not seem to work at all from the
command line however. Can this issue be addressed?

Original issue reported on code.google.com by man...@gmail.com on 30 May 2008 at 10:12

GoogleCodeExporter commented 9 years ago
Note: I may have spoke to soon. I have figured out how to run from the command 
line -
I merely had to convert my relative paths to absolute paths.

It would be nice if minify provided a function other than serve() which simply
returned the minified content. Having to set the quiet and encodeOutput options 
seems
a little silly when just running via a commandline script.

Original comment by man...@gmail.com on 30 May 2008 at 10:28

GoogleCodeExporter commented 9 years ago
I need to work on the docs :/. For command-line you might just use 
Minify_Javascript
(or Minify_CSS) separately and combine the outputs.

I suppose Minify could sniff for command line usage and use different defaults 
for
serve(), but in the interest of keeping Minify lean, you could just set the 
options
you need :)

Original comment by mrclay....@gmail.com on 1 Jun 2008 at 12:14

GoogleCodeExporter commented 9 years ago
I labelled this incorrectly.

Original comment by mrclay....@gmail.com on 27 Nov 2008 at 3:47