gulp-rewrite-css
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -1,5 +0,5 @@ | ||
// Generated by CoffeeScript 1.12.3 | ||
// Generated by CoffeeScript 1.12.5 | ||
(function() { | ||
'use strict'; | ||
var BufferStreams, IMPORT_REGEX, PLUGIN_NAME, URL_REGEX, cleanMatch, es, green, gutil, isRelativeToBase, isRelativeUrl, magenta, path, url; | ||
var BufferStreams, IMPORT_REGEX, PLUGIN_NAME, URL_REGEX, adaptPath, cleanMatch, es, green, gutil, isRelativeToBase, isRelativeUrl, magenta, path, url; | ||
@@ -46,2 +46,6 @@ es = require('event-stream'); | ||
adaptPath = function(ctx) { | ||
return path.join(path.relative(ctx.destinationDir, ctx.sourceDir), ctx.targetFile); | ||
}; | ||
module.exports = function(opt) { | ||
@@ -56,5 +60,3 @@ var bufferReplace, logRewrite, mungePath, rewriteUrls, streamReplace; | ||
if (opt.adaptPath == null) { | ||
opt.adaptPath = function(ctx) { | ||
return path.join(path.relative(ctx.destinationDir, ctx.sourceDir), ctx.targetFile); | ||
}; | ||
opt.adaptPath = adaptPath; | ||
} | ||
@@ -145,2 +147,4 @@ if (typeof opt.adaptPath !== 'function') { | ||
module.exports.adaptPath = adaptPath; | ||
}).call(this); |
@@ -35,12 +35,12 @@ { | ||
"devDependencies": { | ||
"coffee-script": "~1.12.0", | ||
"coveralls": "~2.11.4", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"coffee-script": "~1.12.4", | ||
"coveralls": "~2.13.1", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"gulp": "~3.9.0", | ||
"istanbul": "~0.4.0", | ||
"mocha": "~3.2.0", | ||
"mocha-lcov-reporter": "1.2.0", | ||
"mocha": "~3.3.0", | ||
"mocha-lcov-reporter": "1.3.0", | ||
"proxyquire": "~1.7.3", | ||
"should": "~11.2.0", | ||
"sinon": "~1.17.1", | ||
"sinon": "~2.1.0", | ||
"strip-ansi": "~3.0.0", | ||
@@ -55,3 +55,3 @@ "semantic-release": "^6.3.2" | ||
}, | ||
"version": "1.0.4" | ||
"version": "1.1.0" | ||
} |
9949
130