gulp-css-spritus
Advanced tools
Comparing version 1.6.0 to 1.7.0
23
index.js
@@ -8,2 +8,3 @@ var | ||
, fs = require('fs') | ||
, pathPlugin = require('path') | ||
, prettyBytes = require('pretty-bytes') | ||
@@ -120,14 +121,20 @@ , imageminPngquant = require('imagemin-pngquant') | ||
fs.unlink(filepath, function (err) { | ||
if (err) {} | ||
var dirPath = pathPlugin.dirname(filepath); | ||
fs.writeFile(filepath, file.contents, function (err) { | ||
if (err) throw err; | ||
mkdirp(dirPath, function (err) { | ||
if (!fromImagemin) { | ||
console.log('spritus[save file]: ' + path + file.path); | ||
} | ||
fs.unlink(filepath, function (err) { | ||
if (err) {} | ||
fs.writeFile(filepath, file.contents, function (err) { | ||
if (err) throw err; | ||
if (!fromImagemin) { | ||
console.log('spritus[save file]: ' + path + file.path); | ||
} | ||
}); | ||
}); | ||
}); | ||
}); | ||
}; | ||
@@ -134,0 +141,0 @@ |
{ | ||
"name": "gulp-css-spritus", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Parses your styles to find the sprites and then creates, saves and compresses", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
39116
553