I added 2 improvements to steal/build that speed up the build process by about 10x. In a client project, the build (for several JMVC apps) was taking 17 minutes before this change and 2:17 after.
The changes are:
1) The build step concatenates first, compresses second. This used to work by compressing each app one at a time. Now it combines all your scripts first, then compresses once (unless you have scripts with ignore: true). This is a big time saver.
2) Uglify is a supported compressor. Uglify is a nodeJS based compressor that has as good compression rates as Google Closure in 1/10th the time.
Closure is still the default compressor because Uglify requires you to install nodeJS and put it in your path. To turn on Uglify first install node:
On Mac download the latest version here http://nodejs.org/#download and follow the instructions here https://github.com/joyent/node/wiki/Installation. Then:
cd node
./configure
make
sudo make install
On windows its even easier, you download the exe on the download page and add it to your path.
Then in your scripts/build.js options, add the compressor: "uglify" option like:
steal.build('myapp/scripts/build.html', {
to: 'myapp',
compressor: 'uglify'
})
- Brian