file-loader
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.11.1"></a> | ||
## [0.11.1](https://github.com/webpack/file-loader/compare/v0.11.0...v0.11.1) (2017-04-01) | ||
### Bug Fixes | ||
* outputPath function overriden by useRelativePath ([#139](https://github.com/webpack/file-loader/issues/139)) ([80cdee2](https://github.com/webpack/file-loader/commit/80cdee2)) | ||
<a name="0.11.0"></a> | ||
@@ -7,0 +17,0 @@ # [0.11.0](https://github.com/webpack/file-loader/compare/v0.10.1...v0.11.0) (2017-03-31) |
17
index.js
@@ -39,10 +39,2 @@ /* | ||
var outputPath = ""; | ||
if (config.outputPath) { | ||
// support functions as outputPath to generate them dynamically | ||
outputPath = ( | ||
typeof config.outputPath === "function" | ||
? config.outputPath(url) | ||
: config.outputPath | ||
); | ||
} | ||
@@ -60,4 +52,9 @@ var filePath = this.resourcePath; | ||
url = relativePath + url; | ||
} else if (outputPath) { | ||
outputPath = outputPath + url; | ||
} else if (config.outputPath) { | ||
// support functions as outputPath to generate them dynamically | ||
outputPath = ( | ||
typeof config.outputPath === "function" | ||
? config.outputPath(url) | ||
: config.outputPath + url | ||
); | ||
url = outputPath; | ||
@@ -64,0 +61,0 @@ } else { |
{ | ||
"name": "file-loader", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "file loader module for webpack", |
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
10845
69