Added minification support for JavaScript files#4
Conversation
|
Thx man! The tough question is though... should minification be default or not? The minification should only happen when |
|
I agree with you that the minification should happen only on Indeed it should be configurable, what if instead of |
|
I like the idea! Some tweaks that comes to mind:
BundleUp(app, 'assets.js', {
staticRoot: __dirname + '/public'
staticUrlRoot: '/'
development:true
bundles: {
minifyCss:true,
minifyJs:true
},
hooks: {
preMinify: {
js: [...]
css: [...]
},
afterMinify: {
js: [...]
css: [...]
}
}
});Let me know what you think :) |
|
I like the idea and I agree with what you say! So I will give the win to The above sounds more logical to me :) EDIT: |
|
Yeah, totally agree with you there! Will work on all these changes discussed in a couple of days. Thx for the feedback! |
Added support for minification on javascript files.
Also in Coffee-Script there is no need to have
returnstatement since coffee don't produce any void functions, even transparently they return always something so this:is same with this:
you could emulate a
voidmethod like this: