grunt-css-urls
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "grunt-css-urls", | ||
"description": "Grunt task to make css urls relative to a main css file with @import rules", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/Ideame/grunt-css-urls", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -13,3 +13,10 @@ /* | ||
var importFile = this.file.src; | ||
var baseDir = path.dirname(__dirname + '/' + this.file.src); | ||
var writeln = (this.data.safe) ? grunt.logwriteln : grunt.fail.warn ; | ||
if (!fs.existsSync(this.file.src)){ | ||
return writeln("Specified file not found: " + this.file.src); | ||
} | ||
var baseDir = path.dirname(grunt.file.expandFileURLs(this.file.src)[0]).replace('file://', ''); | ||
var importContents = grunt.file.read(importFile); | ||
@@ -16,0 +23,0 @@ |
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
38
4614
6