fis-spriter-csssprites
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ /* | ||
var Image = require('node-images'); | ||
var PngCrush = require('node-pngcrush'); | ||
var Pngquant = require('node-pngquant-native'); | ||
@@ -56,5 +56,5 @@ module.exports = function(file, list, ret, settings, opt) { | ||
if (this.opt.optimize) { | ||
var compress_conf = fis.config.get('settings.optimizer.pngcrush') || {}; | ||
var compress_conf = fis.config.get('settings.optimizer.pngquant') || {}; | ||
image_file.setContent( | ||
PngCrush.option(compress_conf) | ||
Pngquant.option(compress_conf) | ||
.compress(image.encode('png')) | ||
@@ -61,0 +61,0 @@ ); |
{ | ||
"name": "fis-spriter-csssprites", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "基于fis的csssprite,支持repeat-x,repeat-x,background-position", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"node-images": "1.5.1", | ||
"node-pngcrush": "0.0.7" | ||
"node-pngquant-native": "0.0.2" | ||
}, | ||
@@ -21,0 +21,0 @@ "keywords": [ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21729
0.06%0
-100%+ Added
+ Added
- Removed
- Removed