Search code examples
javascriptnode.jsuglifyjs

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?


Solution

  • cat * | uglifyjs -o script.js
    

    If by uglifyjs you mean https://github.com/mishoo/UglifyJS this works! Without an input file uglifyjs will read from STDIN.