html-loader
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -5,4 +5,4 @@ # Change Log | ||
<a name="0.5.4"></a> | ||
## [0.5.4](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.4) (2018-01-05) | ||
<a name="0.5.5"></a> | ||
## [0.5.5](https://github.com/webpack-contrib/html-loader/compare/v0.5.4...v0.5.5) (2018-01-17) | ||
@@ -12,9 +12,8 @@ | ||
* ignore attribute if `mailto:` is present ([#145](https://github.com/webpack-contrib/html-loader/issues/145)) ([4b13d4c](https://github.com/webpack-contrib/html-loader/commit/4b13d4c)) | ||
* **index:** escape double quotes correctly (`options.interpolate`) ([#154](https://github.com/webpack-contrib/html-loader/issues/154)) ([1ef5de4](https://github.com/webpack-contrib/html-loader/commit/1ef5de4)) | ||
* **index:** don't prepend `./` to the URL on `interpolate=require` (`options.interpolate`) ([#165](https://github.com/webpack-contrib/html-loader/issues/165)) ([9515410](https://github.com/webpack-contrib/html-loader/commit/9515410)) | ||
<a name="0.5.3"></a> | ||
## [0.5.3](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.3) (2018-01-05) | ||
<a name="0.5.4"></a> | ||
## [0.5.4](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.4) (2018-01-05) | ||
@@ -28,14 +27,2 @@ | ||
<a name="0.5.2"></a> | ||
## [0.5.2](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.2) (2018-01-05) | ||
### Bug Fixes | ||
* ignore attribute if `mailto:` is present ([#145](https://github.com/webpack-contrib/html-loader/issues/145)) ([4b13d4c](https://github.com/webpack-contrib/html-loader/commit/4b13d4c)) | ||
* **index:** escape double quotes correctly (`options.interpolate`) ([#154](https://github.com/webpack-contrib/html-loader/issues/154)) ([1ef5de4](https://github.com/webpack-contrib/html-loader/commit/1ef5de4)) | ||
<a name="0.5.1"></a> | ||
@@ -42,0 +29,0 @@ ## [0.5.1](https://github.com/webpack/html-loader/compare/v0.5.0...v0.5.1) (2017-08-08) |
11
index.js
@@ -150,5 +150,14 @@ /* | ||
if(!data[match]) return match; | ||
return '" + require(' + JSON.stringify(loaderUtils.urlToRequest(data[match], root)) + ') + "'; | ||
var urlToRequest; | ||
if (config.interpolate === 'require') { | ||
urlToRequest = data[match]; | ||
} else { | ||
urlToRequest = loaderUtils.urlToRequest(data[match], root); | ||
} | ||
return '" + require(' + JSON.stringify(urlToRequest) + ') + "'; | ||
}) + ";"; | ||
} |
{ | ||
"name": "html-loader", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "html 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
180
0
19497