Mark Mark - 4 years ago 172
Javascript Question

Uglify directory

Rather than adding code and files to the uglify script individually, is there any way to tell uglify to grab an entire dir, and output into 1 script.js file?

Answer Source
cat * | uglifyjs -o script.js

If by uglifyjs you mean this works! Without an input file uglifyjs will read from STDIN.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download