Permalink
Browse files

fix to match README syntax

- properly reads 'version' in ./assets.json if exists
- properly reads ./.asset compress option if ./assets.json exists
  • Loading branch information...
1 parent c474aa5 commit 2d0080ed5e1bfc539466e1e78c7258ca41b8e27b @athibaud athibaud committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/asset
View
@@ -156,7 +156,7 @@ process.on('exit', function(){ console.log(); });
function assetsFromObject(obj) {
var arr = [];
for (var asset in obj) {
- arr.push({ name: asset, version: obj[asset].version });
+ arr.push({ name: asset, version: obj[asset], compress: options.compress });
}
return arr;
}

0 comments on commit 2d0080e

Please sign in to comment.