resolve-url-loader
Advanced tools
Comparing version 1.4.2 to 1.4.3
20
index.js
@@ -34,13 +34,17 @@ /* | ||
// details of the file being processed | ||
// we would normally use compilation.getPath(options.output.path) to get the most correct outputPath, | ||
// however we need to match to the sass-loader and it does not do so | ||
var loader = this, | ||
filePath = loader.context, | ||
outputPath = loader.options.output.path, | ||
options = defaults(loaderUtils.parseQuery(loader.query), loader.options[camelcase(PACKAGE_NAME)], { | ||
absolute : false, | ||
sourceMap: false, | ||
fail : false, | ||
silent : false, | ||
root : null | ||
}); | ||
outputPath = path.resolve(loader.options.output.path); | ||
// prefer loader query, else options object, else default values | ||
var options = defaults(loaderUtils.parseQuery(loader.query), loader.options[camelcase(PACKAGE_NAME)], { | ||
absolute : false, | ||
sourceMap: false, | ||
fail : false, | ||
silent : false, | ||
root : null | ||
}); | ||
// validate root directory | ||
@@ -47,0 +51,0 @@ var resolvedRoot = (typeof options.root === 'string') && path.resolve(options.root), |
{ | ||
"name": "resolve-url-loader", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Webpack loader that resolves relative paths in url() statements based on the original source file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21338
379