bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Feature request: Multiple output files #365

Open LeaVerou opened 12 years ago

LeaVerou commented 12 years ago

I'm working on a script with multiple components, residing in separate files for development. I want to automatically create minified versions of each of these files. I also want to concatenate the un-minified files into one, for people to download and study the code.

With the current setup, I can't do both. I have to pick one of the two, since I can only have one output per file. :(

ialphan commented 12 years ago

+1 I would like this as well.

bdkjones commented 12 years ago

The way to do this is to create two "master" or "wrapper" Javascript files that import all the others. Set one of these master files to combine and minify everything. Set the other to combine without minifying. Then, whenever you change a file that's imported into the others, both master files will be re-processed.