sass-loader
Advanced tools
Comparing version 2.0.0 to 2.0.1
Changelog | ||
--------- | ||
### 2.0.1 | ||
- Add missing path normalization (fixes [#141](https://github.com/jtangelder/sass-loader/pull/141)) | ||
### 2.0.0 | ||
- **Breaking:** Refactor [import resolving algorithm](https://github.com/jtangelder/sass-loader/blob/089c52dc9bd02ec67fb5c65c2c226f43710f231c/index.js#L293-L348). The new algorithm is aligned to libsass' way of resolving files. This yields to different results if two files with the same path and filename but with different extensions are present. Though this change should be no problem for most users, we must flag it as breaking change. [#135](https://github.com/jtangelder/sass-loader/issues/135) [#138](https://github.com/jtangelder/sass-loader/issues/138) | ||
- **Breaking:** Refactor [import resolving algorithm](https://github.com/jtangelder/sass-loader/blob/089c52dc9bd02ec67fb5c65c2c226f43710f231c/index.js#L293-L348). The new algorithm is aligned to libsass' way of resolving files. This yields to different results if two files with the same path and filename but with different extensions are present. Though this change should be no problem for most users, we must flag it as breaking change. [#135](https://github.com/jtangelder/sass-loader/issues/135) [#138](https://github.com/jtangelder/sass-loader/issues/138) | ||
- Add temporary fix for stuck processes (see [sass/node-sass#857](https://github.com/sass/node-sass/issues/857)) [#100](https://github.com/jtangelder/sass-loader/issues/100) [#119](https://github.com/jtangelder/sass-loader/issues/119) [#132](https://github.com/jtangelder/sass-loader/pull/132) | ||
@@ -8,0 +12,0 @@ - Fix path resolving on Windows [#108](https://github.com/jtangelder/sass-loader/issues/108) |
@@ -84,2 +84,4 @@ 'use strict'; | ||
// node-sass returns UNIX-style paths | ||
fileContext = path.normalize(fileContext); | ||
request = utils.urlToRequest(url, opt.root); | ||
@@ -95,2 +97,4 @@ dirContext = fileToDirContext(fileContext); | ||
// node-sass returns UNIX-style paths | ||
fileContext = path.normalize(fileContext); | ||
request = utils.urlToRequest(url, opt.root); | ||
@@ -127,3 +131,3 @@ dirContext = fileToDirContext(fileContext); | ||
// in handy when an error occurs. In this case, we don't get stats.includedFiles from node-sass. | ||
self.dependency(resolvedFilename); | ||
addNormalizedDependency(resolvedFilename); | ||
// By removing the CSS file extension, we trigger node-sass to include the CSS file instead of just linking it. | ||
@@ -166,3 +170,3 @@ resolvedFilename = resolvedFilename.replace(matchCss, ''); | ||
// in handy when an error occurs. In this case, we don't get stats.includedFiles from node-sass. | ||
self.dependency(resolvedFilename); | ||
addNormalizedDependency(resolvedFilename); | ||
// By removing the CSS file extension, we trigger node-sass to include the CSS file instead of just linking it. | ||
@@ -169,0 +173,0 @@ resolvedFilename = resolvedFilename.replace(matchCss, ''); |
{ | ||
"name": "sass-loader", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Sass loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
26582
307