I'm trying to make my JavaScript files a little smaller. 

I've got a `javascripts/` directory, and then a `_website/javascripts/` directory where my static assets get compiled. Inside of the `javascripts/` directory I have a few nested directories for polyfills, libraries and so on, and then files for my site. 

How can I recursively iterate through all the nested directories of `javascripts/` and pump out minified, compressed, but not concatenated files into my `_website/javascripts/` directory?

Here's the code I have so far. Ideally I can do this in an npm script. It's totally cool if it only works on Linux for now.

```
find scripts/ -name '*.js' -print0 | xargs -0 uglifyjs

```

And then I don't know how to pass the inputs to each xargs execution as names for the --output flag of uglifyjs.

How do I do this with xargs? Is it the {} notion?