sass-loader
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="7.0.1"></a> | ||
## [7.0.1](https://github.com/webpack-contrib/sass-loader/compare/v7.0.0...v7.0.1) (2018-04-13) | ||
### Bug Fixes | ||
* Wrong import precedence (#557) ([f4eeff1](https://github.com/webpack-contrib/sass-loader/commit/f4eeff1)) | ||
<a name="7.0.0"></a> | ||
@@ -18,2 +28,3 @@ # [7.0.0](https://github.com/webpack-contrib/sass-loader/compare/v6.0.7...v7.0.0) (2018-04-13) | ||
* Drop official node 4 support | ||
* This slightly changes the resolving algorithm. Should not break in normal usage, but might break in complex configurations. | ||
@@ -20,0 +31,0 @@ * The sass-loader throws an error at runtime now and refuses to compile if the peer dependency is wrong. This could break applications where npm's peer dependency warning was just ignored. |
@@ -11,3 +11,3 @@ "use strict"; | ||
* Since the sass-loader uses webpack to resolve the modules, we need to simulate that algorithm. This function | ||
* returns an array of import paths to try. The first entry in the array is always the original url | ||
* returns an array of import paths to try. The last entry in the array is always the original url | ||
* to enable straight-forward webpack.config aliases. | ||
@@ -25,3 +25,3 @@ * | ||
if (matchModuleImport.test(url)) { | ||
return [url, request]; | ||
return [request, url]; | ||
} | ||
@@ -38,3 +38,3 @@ | ||
if (ext === ".scss" || ext === ".sass") { | ||
return [url, request]; | ||
return [request, url]; | ||
} | ||
@@ -49,4 +49,4 @@ | ||
return [ | ||
url, | ||
`${ request }.scss`, `${ request }.sass`, `${ request }.css` | ||
`${ request }.scss`, `${ request }.sass`, `${ request }.css`, | ||
url | ||
]; | ||
@@ -58,5 +58,5 @@ } | ||
return [ | ||
url, | ||
`${ dirname }/_${ basename }.scss`, `${ dirname }/_${ basename }.sass`, `${ dirname }/_${ basename }.css`, | ||
`${ request }.scss`, `${ request }.sass`, `${ request }.css` | ||
`${ request }.scss`, `${ request }.sass`, `${ request }.css`, | ||
url | ||
]; | ||
@@ -63,0 +63,0 @@ } |
{ | ||
"name": "sass-loader", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Sass loader for webpack", | ||
@@ -5,0 +5,0 @@ "author": "J. Tangelder", |
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
40275