Comparing version 0.2.1 to 0.2.2
@@ -109,2 +109,3 @@ var fs = require('fs'), | ||
} | ||
fileContent = iconv.encode(fileContent, config.outputEncoding || 'gbk'); | ||
@@ -121,6 +122,8 @@ var comboFile = config.output; | ||
// fs.writeFileSync(comboFile, fileContent, ''); | ||
var fd = fs.openSync(comboFile, 'w'); | ||
// write file | ||
fs.writeSync(fd, fileContent, 0, config.outputEncoding); | ||
fs.writeSync(fd, fileContent, 0, fileContent.length); | ||
fs.closeSync(fd); | ||
@@ -171,2 +174,3 @@ | ||
var fileContent = iconv.decode(data, config.inputEncoding); | ||
// var fileContent = data; | ||
utils.log('file charset is: ' + config.inputEncoding, 'debug'); | ||
@@ -173,0 +177,0 @@ |
{ | ||
"name":"css-combo", | ||
"version":"0.2.1", | ||
"version":"0.2.2", | ||
"description":"css module combo tool", | ||
@@ -5,0 +5,0 @@ "author":"Dorange <daxingplay@gmail.com>", |
@@ -30,4 +30,8 @@ # css-combo | ||
## ChangeList | ||
* 0.2.2���������֮������ļ��������� | ||
## License | ||
css-combo ���� "MIT"��https://github.com/daxingplay/css-combo/blob/master/LICENSE.md �� | ||
var CssCombo = require('../lib/index'), | ||
path = require('path'); | ||
path = require('path'), | ||
fs = require('fs'), | ||
iconv = require('iconv-lite'); | ||
@@ -7,5 +9,5 @@ CssCombo.build({ | ||
debug: true, | ||
// inputEncoding: 'gbk', | ||
// outputEncoding: 'gbk', | ||
output:'css/test.combo.css', | ||
inputEncoding: 'gbk', | ||
outputEncoding: 'gbk', | ||
output:path.resolve(__dirname, 'css/test.combo.css'), | ||
compress: 0 | ||
@@ -18,2 +20,2 @@ }, function(e){ | ||
} | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1572
37
63278
3