Comparing version 0.2.7 to 0.2.9
@@ -11,3 +11,4 @@ /** | ||
async = require('async'), | ||
utils = require('./utils'); | ||
utils = require('./utils'), | ||
os = require('os'); | ||
@@ -30,2 +31,4 @@ function CssCombo(cfg, callback){ | ||
cfg.linefeed = cfg.linefeed || os.EOL; | ||
cfg.compress = !!cfg.compress; | ||
@@ -95,15 +98,15 @@ | ||
commentTpl = [ | ||
'/*\r\n', | ||
'combined files : \r\n', | ||
'\r\n' | ||
'/*' + config.linefeed, | ||
'combined files : ' + config.linefeed, | ||
config.linefeed | ||
]; | ||
for (var i in self.imports) { | ||
commentTpl.push(self.imports[i] + '\r\n'); | ||
commentTpl.push(self.imports[i] + config.linefeed); | ||
} | ||
commentTpl.push('*/\r\n'); | ||
commentTpl.push('*/' + config.linefeed); | ||
// join combo comment to file content. | ||
fileContent = commentTpl.join('') + '\r\n' + fileContent; | ||
fileContent = commentTpl.join('') + config.linefeed + fileContent; | ||
var cssFileExt = '.combo.css'; | ||
@@ -110,0 +113,0 @@ if(config.compress){ |
{ | ||
"name":"css-combo", | ||
"version":"0.2.7", | ||
"version":"0.2.9", | ||
"description":"css module combo tool", | ||
@@ -5,0 +5,0 @@ "author":"daxingplay <daxingplay@gmail.com>", |
617069
1749