Comparing version 0.3.1 to 0.3.2
@@ -248,3 +248,3 @@ /** | ||
var preservedTokens = []; | ||
fileContent = compressor._extractDataUrls(fileContent, preservedTokens); | ||
// fileContent = compressor._extractDataUrls(fileContent, preservedTokens); | ||
fileContent = compressor._extractComments(fileContent, preservedTokens); | ||
@@ -251,0 +251,0 @@ |
{ | ||
"name":"css-combo", | ||
"version":"0.3.1", | ||
"version":"0.3.2", | ||
"description":"css module combo tool", | ||
@@ -5,0 +5,0 @@ "author":"daxingplay <daxingplay@gmail.com>", |
@@ -36,2 +36,29 @@ var CssCombo = require('../lib/index'), | ||
it('should not replace data uris', function(done){ | ||
CssCombo.build({ | ||
target: path.resolve(__dirname, 'css/test3.source.css'), | ||
debug: false, | ||
inputEncoding: 'utf-8', | ||
outputEncoding: 'utf-8', | ||
output:path.resolve(__dirname, 'css/test3.combo.css'), | ||
compress: 0 | ||
}, function(e, report){ | ||
if(e){ | ||
throw new Error(e); | ||
}else{ | ||
report = report[0]; | ||
if (report.target !== path.resolve(__dirname, 'css/test3.source.css')) { | ||
throw new Error('report.target Error'); | ||
} | ||
if (report.output !== path.resolve(__dirname, 'css/test3.combo.css')) { | ||
throw new Error('report.output Error'); | ||
} | ||
if (report.imports.length !== 1) { | ||
throw new Error('report.imports Error'); | ||
} | ||
} | ||
done(); | ||
}); | ||
}); | ||
}); |
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
653117
33
2769