css-relative-url-loader
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,3 @@ const path = require('path'); | ||
module.exports = function (content) { | ||
this.cacheable(); | ||
const query = loaderUtils.parseQuery(this.query); | ||
@@ -14,4 +15,4 @@ | ||
return content.replace(/url\([\'\"]?([^'"]+)[\'\"]?\)/g, | ||
(str, path) => 'url(\'' + path.join(relative, path) + '\')' | ||
(str, filePath) => `url('${path.join(relative, filePath)}')` | ||
); | ||
}; |
{ | ||
"name": "css-relative-url-loader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Loader for webpack, replace relative paths in css with root", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
37026
12