css-loader
Advanced tools
Comparing version 0.28.5 to 0.28.6
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.28.6"></a> | ||
## [0.28.6](https://github.com/webpack/css-loader/compare/v0.28.5...v0.28.6) (2017-08-30) | ||
### Bug Fixes | ||
* add support for aliases starting with `/` (`options.alias`) ([#597](https://github.com/webpack/css-loader/issues/597)) ([63567f2](https://github.com/webpack/css-loader/commit/63567f2)) | ||
<a name="0.28.5"></a> | ||
@@ -7,0 +17,0 @@ ## [0.28.5](https://github.com/webpack/css-loader/compare/v0.28.4...v0.28.5) (2017-08-17) |
@@ -45,2 +45,3 @@ /* | ||
query: query, | ||
resolve: resolve, | ||
minimize: this.minimize, | ||
@@ -47,0 +48,0 @@ loaderContext: this, |
@@ -86,2 +86,7 @@ /* | ||
function isAlias(url) { | ||
// Handle alias starting by / and root disabled | ||
return url !== options.resolve(url) | ||
} | ||
function processNode(item) { | ||
@@ -102,3 +107,3 @@ switch (item.type) { | ||
case "url": | ||
if (options.url && item.url.replace(/\s/g, '').length && !/^#/.test(item.url) && loaderUtils.isUrlRequest(item.url, options.root)) { | ||
if (options.url && item.url.replace(/\s/g, '').length && !/^#/.test(item.url) && (isAlias(item.url) || loaderUtils.isUrlRequest(item.url, options.root))) { | ||
// Don't remove quotes around url when contain space | ||
@@ -154,3 +159,4 @@ if (item.url.indexOf(" ") === -1) { | ||
url: query.url !== false, | ||
import: query.import !== false | ||
import: query.import !== false, | ||
resolve: options.resolve | ||
}; | ||
@@ -157,0 +163,0 @@ |
{ | ||
"name": "css-loader", | ||
"version": "0.28.5", | ||
"version": "0.28.6", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "css 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
42143
595