I'm adding scripts (using addJs()) to my namespace, but in the compacted file, the order isn't maintained. Example:
I was wondering if there is any way to fix this? Thanks.
I think I've found the cause of your problem. I have been calling: async.concat to join the files together. When all the files are small they get concatenated in the correct order. As soon as they are large and vary in size the order is not deterministic.
I've switched to using async.concatSeries which will fix this problem. I'm just making the regression tests and will have a new version of the module published in NPM in the next 30 mins.
Thanks for using compact and taking the time to report the bug.
Fixing issue #7. Ensure order or compacted JS
This is now published to NPM as version 0.0.4