sass-loader 6.0.6 → 6.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +5 -1
- package/lib/loader.js +1 -1
- package/package.json +6 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
<a name="6.0.7"></a>
|
|
6
|
+
## [6.0.7](https://github.com/webpack-contrib/sass-loader/compare/v6.0.6...v6.0.7) (2018-03-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **package:** add `webpack >= v4.0.0` (`peerDependencies`) ([#541](https://github.com/webpack-contrib/sass-loader/issues/541)) ([620bdd4](https://github.com/webpack-contrib/sass-loader/commit/620bdd4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Performance Improvements
|
|
15
|
+
|
|
16
|
+
* use `neo-async` instead `async` ([#538](https://github.com/webpack-contrib/sass-loader/issues/538)) ([fab89dc](https://github.com/webpack-contrib/sass-loader/commit/fab89dc))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
5
20
|
<a name="6.0.6"></a>
|
|
6
21
|
## [6.0.6](https://github.com/webpack-contrib/sass-loader/compare/v6.0.5...v6.0.6) (2017-06-14)
|
|
7
22
|
|
package/README.md
CHANGED
|
@@ -34,6 +34,10 @@ as [`peerDependency`](https://docs.npmjs.com/files/package.json#peerdependencies
|
|
|
34
34
|
|
|
35
35
|
Chain the sass-loader with the [css-loader](https://github.com/webpack-contrib/css-loader) and the [style-loader](https://github.com/webpack-contrib/style-loader) to immediately apply all styles to the DOM.
|
|
36
36
|
|
|
37
|
+
```bash
|
|
38
|
+
npm install style-loader css-loader --save-dev
|
|
39
|
+
```
|
|
40
|
+
|
|
37
41
|
```js
|
|
38
42
|
// webpack.config.js
|
|
39
43
|
module.exports = {
|
|
@@ -134,7 +138,7 @@ Since Sass/[libsass](https://github.com/sass/libsass) does not provide [url rewr
|
|
|
134
138
|
|
|
135
139
|
More likely you will be disrupted by this second issue. It is natural to expect relative references to be resolved against the `.scss` file in which they are specified (like in regular `.css` files). Thankfully there are a two solutions to this problem:
|
|
136
140
|
|
|
137
|
-
- Add the missing url rewriting using the [resolve-url-loader](https://github.com/bholloway/resolve-url-loader). Place it
|
|
141
|
+
- Add the missing url rewriting using the [resolve-url-loader](https://github.com/bholloway/resolve-url-loader). Place it before the sass-loader in the loader chain.
|
|
138
142
|
- Library authors usually provide a variable to modify the asset path. [bootstrap-sass](https://github.com/twbs/bootstrap-sass) for example has an `$icon-font-path`. Check out [this working bootstrap example](https://github.com/webpack-contrib/sass-loader/tree/master/test/bootstrapSass).
|
|
139
143
|
|
|
140
144
|
### Extracting style sheets
|
package/lib/loader.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const sass = require("node-sass");
|
|
4
4
|
const path = require("path");
|
|
5
|
-
const async = require("async");
|
|
5
|
+
const async = require("neo-async");
|
|
6
6
|
const formatSassError = require("./formatSassError");
|
|
7
7
|
const webpackImporter = require("./webpackImporter");
|
|
8
8
|
const normalizeOptions = require("./normalizeOptions");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sass-loader",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.7",
|
|
4
4
|
"description": "Sass loader for webpack",
|
|
5
5
|
"author": "J. Tangelder",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"release": "standard-version"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"
|
|
30
|
-
"clone-deep": "^0.3.0",
|
|
29
|
+
"clone-deep": "^2.0.1",
|
|
31
30
|
"loader-utils": "^1.0.1",
|
|
32
31
|
"lodash.tail": "^4.1.1",
|
|
32
|
+
"neo-async": "^2.5.0",
|
|
33
33
|
"pify": "^3.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"node-sass": "^4.0.0",
|
|
57
|
-
"webpack": "^2.0.0 ||
|
|
57
|
+
"webpack": "^2.0.0 || ^3.0.0 || ^4.0.0"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"sass",
|
|
@@ -62,12 +62,7 @@
|
|
|
62
62
|
"webpack",
|
|
63
63
|
"loader"
|
|
64
64
|
],
|
|
65
|
-
"repository":
|
|
66
|
-
|
|
67
|
-
"url": "git://github.com/webpack-contrib/sass-loader.git"
|
|
68
|
-
},
|
|
69
|
-
"bugs": {
|
|
70
|
-
"url": "https://github.com/webpack-contrib/sass-loader/issues"
|
|
71
|
-
},
|
|
65
|
+
"repository": "https://github.com/webpack-contrib/sass-loader.git",
|
|
66
|
+
"bugs": "https://github.com/webpack-contrib/sass-loader/issues",
|
|
72
67
|
"homepage": "https://github.com/webpack-contrib/sass-loader"
|
|
73
68
|
}
|