sass-loader 6.0.5 → 6.0.6
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 +226 -77
- package/README.md +5 -5
- package/lib/formatSassError.js +1 -1
- package/lib/loader.js +0 -2
- package/package.json +43 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,133 +1,282 @@
|
|
|
1
|
-
|
|
2
|
-
---------
|
|
1
|
+
# Change Log
|
|
3
2
|
|
|
4
|
-
|
|
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.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
<a name="6.0.6"></a>
|
|
6
|
+
## [6.0.6](https://github.com/webpack-contrib/sass-loader/compare/v6.0.5...v6.0.6) (2017-06-14)
|
|
7
7
|
|
|
8
|
-
###
|
|
8
|
+
### Chore
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
* Adds Webpack 3.x version range to peerDependencies
|
|
11
11
|
|
|
12
|
-
### 6.0.3
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
<a name="6.0.5"></a>
|
|
14
|
+
# [6.0.5](https://github.com/webpack-contrib/sass-loader/compare/v6.0.5...v6.0.4) (2017-05-10)
|
|
16
15
|
|
|
17
|
-
###
|
|
16
|
+
### Bug Fixes
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
* importing file directly from scoped npm package [#450](https://github.com/webpack-contrib/sass-loader/pull/450) ([5d06e9d](https://github.com/webpack-contrib/sass-loader/commit/5d06e9d))
|
|
20
19
|
|
|
21
|
-
### 6.0.1
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
<a name="6.0.4"></a>
|
|
22
|
+
# [6.0.4](https://github.com/webpack-contrib/sass-loader/compare/v6.0.4...v6.0.3) (2017-05-09)
|
|
24
23
|
|
|
25
|
-
###
|
|
24
|
+
### Bug Fixes
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
* fix: Resolving of scoped npm packages [#447](https://github.com/webpack-contrib/sass-loader/pull/447)
|
|
28
27
|
|
|
29
|
-
### 5.0.1
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
<a name="6.0.3"></a>
|
|
30
|
+
# [6.0.3](https://github.com/webpack-contrib/sass-loader/compare/v6.0.3...v6.0.2) (2017-03-07)
|
|
32
31
|
|
|
33
|
-
###
|
|
32
|
+
### Bug Fixes
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
- **Breaking**: Remove official node-sass@3 and webpack@1 support. [5a6bcb96d8bd7a7a11c33252ba739ffe09ca38c5](https://github.com/webpack-contrib/sass-loader/commit/5a6bcb96d8bd7a7a11c33252ba739ffe09ca38c5)
|
|
37
|
-
- **Breaking**: Remove node 0.12 support. [29b30755021a834e622bf4b5bb9db4d6e5913905](https://github.com/webpack-contrib/sass-loader/commit/29b30755021a834e622bf4b5bb9db4d6e5913905)
|
|
34
|
+
* Fix regression with empty files [#398](https://github.com/webpack-contrib/sass-loader/pull/398)
|
|
38
35
|
|
|
39
|
-
### 4.1.1
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
### Chore
|
|
42
38
|
|
|
43
|
-
|
|
39
|
+
* Reduce npm package size by using the [files](https://docs.npmjs.com/files/package.json#files) property in the `package.json`
|
|
44
40
|
|
|
45
|
-
- Update `node-sass@4.0.0` [#319](https://github.com/webpack-contrib/sass-loader/pull/319)
|
|
46
41
|
|
|
47
|
-
|
|
42
|
+
<a name="6.0.2"></a>
|
|
43
|
+
# [6.0.2](https://github.com/webpack-contrib/sass-loader/compare/v6.0.2...v6.0.1) (2017-02-21)
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
### Chore
|
|
50
46
|
|
|
51
|
-
|
|
47
|
+
* Update dependencies [#383](https://github.com/webpack-contrib/sass-loader/pull/383)
|
|
52
48
|
|
|
53
|
-
- Fix custom importers receiving `'stdin'` as second argument instead of the actual `resourcePath` [#267](https://github.com/webpack-contrib/sass-loader/pull/267)
|
|
54
49
|
|
|
55
|
-
|
|
50
|
+
<a name="6.0.1"></a>
|
|
51
|
+
# [6.0.1](https://github.com/webpack-contrib/sass-loader/compare/v6.0.1...v6.0.0) (2017-02-17)
|
|
56
52
|
|
|
57
|
-
|
|
53
|
+
### Bug Fixes
|
|
58
54
|
|
|
59
|
-
|
|
55
|
+
* Fix source maps in certain CWDs. [#377](https://github.com/webpack-contrib/sass-loader/pull/377)
|
|
60
56
|
|
|
61
|
-
- Revert changes to `3.2.1` because `3.2.2` contained a potential breaking change [#254](https://github.com/webpack-contrib/sass-loader/issues/254)
|
|
62
57
|
|
|
63
|
-
|
|
58
|
+
<a name="6.0.0"></a>
|
|
59
|
+
# [6.0.0](https://github.com/webpack-contrib/sass-loader/compare/v6.0.0...v5.0.1) (2017-02-13)
|
|
64
60
|
|
|
65
|
-
|
|
61
|
+
### Bug Fixes
|
|
66
62
|
|
|
67
|
-
|
|
63
|
+
* Improve source map support. [#374](https://github.com/webpack-contrib/sass-loader/issues/374)
|
|
68
64
|
|
|
69
|
-
- Add `webpack@^2.1.0-beta` as peer dependency [#233](https://github.com/webpack-contrib/sass-loader/pull/233)
|
|
70
65
|
|
|
71
|
-
###
|
|
66
|
+
### BREAKING CHANGES
|
|
72
67
|
|
|
73
|
-
|
|
74
|
-
- Make `indentedSyntax` option a bit smarter [#196](https://github.com/webpack-contrib/sass-loader/pull/196)
|
|
68
|
+
* This is breaking for the resolve-url-loader
|
|
75
69
|
|
|
76
|
-
### 3.1.2
|
|
77
70
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
- `node-sass@^3.4.2`
|
|
81
|
-
- `webpack@^1.12.6`
|
|
71
|
+
<a name="5.0.1"></a>
|
|
72
|
+
# [5.0.1](https://github.com/webpack-contrib/sass-loader/compare/v5.0.1...v5.0.0) (2017-02-13)
|
|
82
73
|
|
|
83
|
-
###
|
|
74
|
+
### Bug Fixes
|
|
84
75
|
|
|
85
|
-
|
|
76
|
+
* Fix bug where multiple compilations interfered with each other. [#369](https://github.com/webpack-contrib/sass-loader/pull/369)
|
|
86
77
|
|
|
87
|
-
### 3.1.0
|
|
88
78
|
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
<a name="5.0.0"></a>
|
|
80
|
+
# [5.0.0](https://github.com/webpack-contrib/sass-loader/compare/v5.0.0...v4.1.1) (2017-02-13)
|
|
91
81
|
|
|
92
|
-
###
|
|
82
|
+
### Code Refactoring
|
|
93
83
|
|
|
94
|
-
|
|
95
|
-
- Fix crash when Sass reported an error without `file` [#158](https://github.com/webpack-contrib/sass-loader/pull/158)
|
|
84
|
+
* Remove synchronous compilation support [#334](https://github.com/webpack-contrib/sass-loader/pull/334)
|
|
96
85
|
|
|
97
|
-
### 2.0.1
|
|
98
86
|
|
|
99
|
-
|
|
87
|
+
### BREAKING CHANGES
|
|
100
88
|
|
|
101
|
-
|
|
89
|
+
* Remove node 0.12 support. [29b30755021a834e622bf4b5bb9db4d6e5913905](https://github.com/webpack-contrib/sass-loader/commit/29b30755021a834e622bf4b5bb9db4d6e5913905)
|
|
90
|
+
* Remove official node-sass@3 and webpack@1 support. [5a6bcb96d8bd7a7a11c33252ba739ffe09ca38c5](https://github.com/webpack-contrib/sass-loader/commit/5a6bcb96d8bd7a7a11c33252ba739ffe09ca38c5)
|
|
91
|
+
* Remove synchronous compilation support. [#334](https://github.com/webpack-contrib/sass-loader/pull/334)
|
|
102
92
|
|
|
103
|
-
- **Breaking:** Refactor [import resolving algorithm](https://github.com/webpack-contrib/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/webpack-contrib/sass-loader/issues/135) [#138](https://github.com/webpack-contrib/sass-loader/issues/138)
|
|
104
|
-
- Add temporary fix for stuck processes (see [sass/node-sass#857](https://github.com/sass/node-sass/issues/857)) [#100](https://github.com/webpack-contrib/sass-loader/issues/100) [#119](https://github.com/webpack-contrib/sass-loader/issues/119) [#132](https://github.com/webpack-contrib/sass-loader/pull/132)
|
|
105
|
-
- Fix path resolving on Windows [#108](https://github.com/webpack-contrib/sass-loader/issues/108)
|
|
106
|
-
- Fix file watchers on Windows [#102](https://github.com/webpack-contrib/sass-loader/issues/102)
|
|
107
|
-
- Fix file watchers for files with errors [#134](https://github.com/webpack-contrib/sass-loader/pull/134)
|
|
108
93
|
|
|
109
|
-
|
|
94
|
+
<a name="4.1.1"></a>
|
|
95
|
+
# [4.1.1](https://github.com/webpack-contrib/sass-loader/compare/v4.1.1...v4.1.0) (2016-12-21)
|
|
110
96
|
|
|
111
|
-
|
|
112
|
-
- Include source-map contents by default [#104](https://github.com/webpack-contrib/sass-loader/pull/104)
|
|
97
|
+
### Chore
|
|
113
98
|
|
|
114
|
-
|
|
99
|
+
* Update webpack peer dependency to support 2.2.0rc. [#330](https://github.com/webpack-contrib/sass-loader/pull/330)
|
|
115
100
|
|
|
116
|
-
- Fix importing css files from scss/sass [#101](https://github.com/webpack-contrib/sass-loader/issues/101)
|
|
117
|
-
- Fix importing Sass partials from includePath [#98](https://github.com/webpack-contrib/sass-loader/issues/98) [#110](https://github.com/webpack-contrib/sass-loader/issues/110)
|
|
118
101
|
|
|
119
|
-
|
|
102
|
+
<a name="4.1.0"></a>
|
|
103
|
+
# [4.1.0](https://github.com/webpack-contrib/sass-loader/compare/v4.1.0...v4.0.2) (2016-12-14)
|
|
120
104
|
|
|
121
|
-
|
|
122
|
-
- Update peer-dependency `node-sass` to `3.1.0`
|
|
105
|
+
### Features
|
|
123
106
|
|
|
124
|
-
|
|
107
|
+
* Update `node-sass@4.0.0` [#319](https://github.com/webpack-contrib/sass-loader/pull/319)
|
|
125
108
|
|
|
126
|
-
- Fix Sass partials not being resolved anymore [#68](https://github.com/webpack-contrib/sass-loader/issues/68)
|
|
127
|
-
- Update peer-dependency `node-sass` to `3.0.0-beta.4`
|
|
128
109
|
|
|
129
|
-
|
|
110
|
+
<a name="4.0.2"></a>
|
|
111
|
+
# [4.0.2](https://github.com/webpack-contrib/sass-loader/compare/v4.0.2...v4.0.1) (2016-07-07)
|
|
130
112
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
113
|
+
### Bug Fixes
|
|
114
|
+
|
|
115
|
+
* Fix wrong context in customImporters [#281](https://github.com/webpack-contrib/sass-loader/pull/281)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<a name="4.0.1"></a>
|
|
119
|
+
# [4.0.1](https://github.com/webpack-contrib/sass-loader/compare/v4.0.1...v4.0.0) (2016-07-01)
|
|
120
|
+
|
|
121
|
+
### Bug Fixes
|
|
122
|
+
|
|
123
|
+
* Fix custom importers receiving `'stdin'` as second argument instead of the actual `resourcePath` [#267](https://github.com/webpack-contrib/sass-loader/pull/267)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
<a name="4.0.0"></a>
|
|
127
|
+
# [4.0.0](https://github.com/webpack-contrib/sass-loader/compare/v4.0.0...v3.2.2) (2016-06-27)
|
|
128
|
+
|
|
129
|
+
### Bug Fixes
|
|
130
|
+
|
|
131
|
+
* Fix incorrect source map paths [#250](https://github.com/webpack-contrib/sass-loader/pull/250)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### BREAKING CHANGES
|
|
135
|
+
|
|
136
|
+
* Release new major version because the previous release was a breaking change in certain scenarios
|
|
137
|
+
See: https://github.com/webpack-contrib/sass-loader/pull/250#issuecomment-228663059
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<a name="3.2.2"></a>
|
|
141
|
+
# [3.2.2](https://github.com/webpack-contrib/sass-loader/compare/v3.2.2...v3.2.1) (2016-06-26)
|
|
142
|
+
|
|
143
|
+
### Bug Fixes
|
|
144
|
+
|
|
145
|
+
* Fix incorrect source map paths [#250](https://github.com/webpack-contrib/sass-loader/pull/250)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<a name="3.2.1"></a>
|
|
149
|
+
# [3.2.1](https://github.com/webpack-contrib/sass-loader/compare/v3.2.1...v3.2.0) (2016-06-19)
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
* Add `webpack@^2.1.0-beta` as peer dependency [#233](https://github.com/webpack-contrib/sass-loader/pull/233)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<a name="3.2.0"></a>
|
|
157
|
+
# [3.2.0](https://github.com/webpack-contrib/sass-loader/compare/v3.2.0...v3.1.2) (2016-03-12)
|
|
158
|
+
|
|
159
|
+
### Features
|
|
160
|
+
|
|
161
|
+
* Append file content instead of overwriting when `data`-option is already present [#216](https://github.com/webpack-contrib/sass-loader/pull/216)
|
|
162
|
+
* Make `indentedSyntax` option a bit smarter [#196](https://github.com/webpack-contrib/sass-loader/pull/196)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
<a name="3.1.2"></a>
|
|
166
|
+
# [3.1.2](https://github.com/webpack-contrib/sass-loader/compare/v3.1.2...v3.1.1) (2015-11-22)
|
|
167
|
+
|
|
168
|
+
### Bug Fixes
|
|
169
|
+
|
|
170
|
+
* Fix loader query not overriding webpack config [#189](https://github.com/webpack-contrib/sass-loader/pull/189)
|
|
171
|
+
* Update peer-dependencies [#182](https://github.com/webpack-contrib/sass-loader/pull/182)
|
|
172
|
+
- `node-sass^3.4.2`
|
|
173
|
+
- `webpack^1.12.6`
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
<a name="3.1.1"></a>
|
|
177
|
+
# [3.1.1](https://github.com/webpack-contrib/sass-loader/compare/v3.1.1...v3.1.0) (2015-10-26)
|
|
178
|
+
|
|
179
|
+
### Bug Fixes
|
|
180
|
+
|
|
181
|
+
* Fix missing module `object-assign` [#178](https://github.com/webpack-contrib/sass-loader/issues/178)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
<a name="3.1.0"></a>
|
|
185
|
+
# [3.1.0](https://github.com/webpack-contrib/sass-loader/compare/v3.1.0...v3.0.0) (2015-10-25)
|
|
186
|
+
|
|
187
|
+
### Bug Fixes
|
|
188
|
+
|
|
189
|
+
* Fix a problem where modules with a `.` in their names were not resolved [#167](https://github.com/webpack-contrib/sass-loader/issues/167)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### Features
|
|
193
|
+
|
|
194
|
+
* Add possibility to also define all options in your `webpack.config.js` [#152](https://github.com/webpack-contrib/sass-loader/pull/152) [#170](https://github.com/webpack-contrib/sass-loader/pull/170)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<a name="3.0.0"></a>
|
|
198
|
+
# [3.0.0](https://github.com/webpack-contrib/sass-loader/compare/v3.0.0...v2.0.1) (2015-09-29)
|
|
199
|
+
|
|
200
|
+
### Bug Fixes
|
|
201
|
+
|
|
202
|
+
* Fix crash when Sass reported an error without `file` [#158](https://github.com/webpack-contrib/sass-loader/pull/158)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### BREAKING CHANGES
|
|
206
|
+
|
|
207
|
+
* Add `node-sass@^3.3.3` and `webpack@^1.12.2` as peer-dependency [#165](https://github.com/webpack-contrib/sass-loader/pull/165) [#166](https://github.com/webpack-contrib/sass-loader/pull/166) [#169](https://github.com/webpack-contrib/sass-loader/pull/169)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<a name="2.0.1"></a>
|
|
211
|
+
# [2.0.1](https://github.com/webpack-contrib/sass-loader/compare/v2.0.1...v2.0.0) (2015-08-14)
|
|
212
|
+
|
|
213
|
+
### Bug Fixes
|
|
214
|
+
|
|
215
|
+
* Add missing path normalization (fixes [#141](https://github.com/webpack-contrib/sass-loader/pull/141))
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
<a name="2.0.0"></a>
|
|
219
|
+
# [2.0.0](https://github.com/webpack-contrib/sass-loader/compare/v2.0.0...v1.0.4) (2015-08-06)
|
|
220
|
+
|
|
221
|
+
### Bug Fixes
|
|
222
|
+
|
|
223
|
+
* Add temporary fix for stuck processes (see [sass/node-sass#857](https://github.com/sass/node-sass/issues/857)) [#100](https://github.com/webpack-contrib/sass-loader/issues/100) [#119](https://github.com/webpack-contrib/sass-loader/issues/119) [#132](https://github.com/webpack-contrib/sass-loader/pull/132)
|
|
224
|
+
* Fix path resolving on Windows [#108](https://github.com/webpack-contrib/sass-loader/issues/108)
|
|
225
|
+
* Fix file watchers on Windows [#102](https://github.com/webpack-contrib/sass-loader/issues/102)
|
|
226
|
+
* Fix file watchers for files with errors [#134](https://github.com/webpack-contrib/sass-loader/pull/134)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Code Refactoring
|
|
230
|
+
|
|
231
|
+
* Refactor [import resolving algorithm](https://github.com/webpack-contrib/sass-loader/blob/089c52dc9bd02ec67fb5c65c2c226f43710f231c/index.js#L293-L348). ([#138](https://github.com/webpack-contrib/sass-loader/issues/138)) ([c8621a1](https://github.com/webpack-contrib/sass-loader/commit/80944ccf09cd9716a100160c068d255c5d742338))
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### BREAKING CHANGES
|
|
235
|
+
|
|
236
|
+
* 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/webpack-contrib/sass-loader/issues/135) [#138](https://github.com/webpack-contrib/sass-loader/issues/138)
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<a name="1.0.4"></a>
|
|
240
|
+
# [1.0.4](https://github.com/webpack-contrib/sass-loader/compare/v1.0.4...v1.0.3) (2015-08-03)
|
|
241
|
+
|
|
242
|
+
### Bug Fixes
|
|
243
|
+
|
|
244
|
+
* Fix wrong source-map urls [#123](https://github.com/webpack-contrib/sass-loader/pull/123)
|
|
245
|
+
* Include source-map contents by default [#104](https://github.com/webpack-contrib/sass-loader/pull/104)
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
<a name="1.0.3"></a>
|
|
249
|
+
# [1.0.3](https://github.com/webpack-contrib/sass-loader/compare/v1.0.3...v1.0.2) (2015-07-22)
|
|
250
|
+
|
|
251
|
+
### Bug Fixes
|
|
252
|
+
|
|
253
|
+
* Fix importing css files from scss/sass [#101](https://github.com/webpack-contrib/sass-loader/issues/101)
|
|
254
|
+
* Fix importing Sass partials from includePath [#98](https://github.com/webpack-contrib/sass-loader/issues/98) [#110](https://github.com/webpack-contrib/sass-loader/issues/110)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<a name="1.0.2"></a>
|
|
258
|
+
# [1.0.2](https://github.com/webpack-contrib/sass-loader/compare/v1.0.2...v1.0.1) (2015-04-15)
|
|
259
|
+
|
|
260
|
+
### Bug Fixes
|
|
261
|
+
|
|
262
|
+
* Fix a bug where files could not be imported across language styles [#73](https://github.com/webpack-contrib/sass-loader/issues/73)
|
|
263
|
+
* Update peer-dependency `node-sass` to `3.1.0`
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
<a name="1.0.1"></a>
|
|
267
|
+
# [1.0.1](https://github.com/webpack-contrib/sass-loader/compare/v1.0.1...v1.0.0) (2015-03-31)
|
|
268
|
+
|
|
269
|
+
### Bug Fixes
|
|
270
|
+
|
|
271
|
+
* Fix Sass partials not being resolved anymore [#68](https://github.com/webpack-contrib/sass-loader/issues/68)
|
|
272
|
+
* Update peer-dependency `node-sass` to `3.0.0-beta.4`
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
<a name="1.0.0"></a>
|
|
276
|
+
# [1.0.0](https://github.com/webpack-contrib/sass-loader/compare/v1.0.0...v0.3.1) (2015-03-22)
|
|
277
|
+
|
|
278
|
+
### Bug Fixes
|
|
279
|
+
|
|
280
|
+
* Moved `node-sass^3.0.0-alpha.0` to `peerDependencies` [#28](https://github.com/webpack-contrib/sass-loader/issues/28)
|
|
281
|
+
* Using webpack's module resolver as custom importer [#39](https://github.com/webpack-contrib/sass-loader/issues/31)
|
|
282
|
+
* Add synchronous compilation support for usage with [enhanced-require](https://github.com/webpack/enhanced-require) [#39](https://github.com/webpack-contrib/sass-loader/pull/39)
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
src="https://webpack.js.org/assets/icon-square-big.svg">
|
|
16
16
|
</a>
|
|
17
17
|
<h1>SASS Loader</h1>
|
|
18
|
-
<p>Loads a SASS/SCSS file and
|
|
18
|
+
<p>Loads a SASS/SCSS file and compiles it to CSS.</p>
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
Use the [css-loader](https://github.com/webpack-contrib/css-loader) or the [raw-loader](https://github.com/webpack-contrib/raw-loader) to turn it into a JS module and the [ExtractTextPlugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) to extract it into a separate file.
|
|
@@ -227,11 +227,11 @@ If you want to prepend Sass code before the actual entry file, you can set the `
|
|
|
227
227
|
[travis]: http://img.shields.io/travis/webpack-contrib/sass-loader.svg
|
|
228
228
|
[travis-url]: https://travis-ci.org/webpack-contrib/sass-loader
|
|
229
229
|
|
|
230
|
-
[appveyor-url]: https://ci.appveyor.com/project/
|
|
231
|
-
[appveyor]: https://ci.appveyor.com/api/projects/status/
|
|
230
|
+
[appveyor-url]: https://ci.appveyor.com/project/webpack-contrib/sass-loader/branch/master
|
|
231
|
+
[appveyor]: https://ci.appveyor.com/api/projects/status/rqpy1vaovh20ttxs/branch/master?svg=true
|
|
232
232
|
|
|
233
|
-
[cover]: https://
|
|
234
|
-
[cover-url]: https://
|
|
233
|
+
[cover]: https://codecov.io/gh/webpack-contrib/sass-loader/branch/master/graph/badge.svg
|
|
234
|
+
[cover-url]: https://codecov.io/gh/webpack-contrib/sass-loader
|
|
235
235
|
|
|
236
236
|
[chat]: https://badges.gitter.im/webpack/webpack.svg
|
|
237
237
|
[chat-url]: https://gitter.im/webpack/webpack
|
package/lib/formatSassError.js
CHANGED
|
@@ -62,7 +62,7 @@ function getFileExcerptIfPossible(err) {
|
|
|
62
62
|
|
|
63
63
|
return os.EOL +
|
|
64
64
|
content.split(os.EOL)[err.line - 1] + os.EOL +
|
|
65
|
-
new Array(
|
|
65
|
+
new Array(err.column - 1).join(" ") + "^" + os.EOL +
|
|
66
66
|
" ";
|
|
67
67
|
} catch (err) {
|
|
68
68
|
// If anything goes wrong here, we don't want any errors to be reported to the user
|
package/lib/loader.js
CHANGED
|
@@ -35,8 +35,6 @@ function sassLoader(content) {
|
|
|
35
35
|
throw new Error("Synchronous compilation is not supported anymore. See https://github.com/webpack-contrib/sass-loader/issues/333");
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
this.cacheable();
|
|
39
|
-
|
|
40
38
|
const options = normalizeOptions(this, content, webpackImporter(
|
|
41
39
|
resourcePath,
|
|
42
40
|
pify(this.resolve.bind(this)),
|
package/package.json
CHANGED
|
@@ -1,67 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sass-loader",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Sass loader for webpack",
|
|
5
|
+
"author": "J. Tangelder",
|
|
6
|
+
"license": "MIT",
|
|
5
7
|
"main": "lib/loader.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
6
11
|
"scripts": {
|
|
12
|
+
"appveyor:test": "npm test",
|
|
7
13
|
"create-spec": "node test/tools/runCreateSpec.js",
|
|
8
|
-
"
|
|
14
|
+
"lint": "eslint lib test",
|
|
9
15
|
"test": "nyc --all mocha -R spec -t 10000",
|
|
10
|
-
"posttest": "npm run lint",
|
|
11
16
|
"test-bootstrap-sass": "webpack-dev-server --config test/bootstrapSass/webpack.config.js --content-base ./test/bootstrapSass",
|
|
12
17
|
"test-source-map": "webpack-dev-server --config test/sourceMap/webpack.config.js --content-base ./test/sourceMap --inline",
|
|
13
18
|
"test-watch": "webpack --config test/watch/webpack.config.js",
|
|
14
19
|
"test-extract-text": "webpack --config test/extractText/webpack.config.js",
|
|
15
20
|
"test-hmr": "webpack-dev-server --config test/hmr/webpack.config.js --content-base ./test/hmr --hot --inline",
|
|
16
|
-
"lint": "
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"webpack",
|
|
23
|
-
"loader"
|
|
24
|
-
],
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "git://github.com/webpack-contrib/sass-loader.git"
|
|
28
|
-
},
|
|
29
|
-
"author": "J. Tangelder",
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">=4.0.0"
|
|
33
|
-
},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"node-sass": "^4.0.0",
|
|
36
|
-
"webpack": "^2.0.0"
|
|
21
|
+
"travis:lint": "npm run lint",
|
|
22
|
+
"travis:test": "npm run test",
|
|
23
|
+
"travis:coverage": "npm run test",
|
|
24
|
+
"pretest": "npm run create-spec",
|
|
25
|
+
"posttest": "npm run lint",
|
|
26
|
+
"release": "standard-version"
|
|
37
27
|
},
|
|
38
28
|
"dependencies": {
|
|
39
29
|
"async": "^2.1.5",
|
|
40
|
-
"clone-deep": "^0.
|
|
30
|
+
"clone-deep": "^0.3.0",
|
|
41
31
|
"loader-utils": "^1.0.1",
|
|
42
32
|
"lodash.tail": "^4.1.1",
|
|
43
|
-
"pify": "^
|
|
33
|
+
"pify": "^3.0.0"
|
|
44
34
|
},
|
|
45
35
|
"devDependencies": {
|
|
46
36
|
"bootstrap-sass": "^3.3.5",
|
|
47
|
-
"css-loader": "^0.
|
|
37
|
+
"css-loader": "^0.28.4",
|
|
48
38
|
"eslint": "^3.16.0",
|
|
49
39
|
"eslint-config-peerigon": "^9.0.0",
|
|
50
40
|
"eslint-plugin-jsdoc": "^2.4.0",
|
|
51
|
-
"file-loader": "^0.
|
|
41
|
+
"file-loader": "^0.11.2",
|
|
52
42
|
"mocha": "^3.0.2",
|
|
53
43
|
"node-sass": "^4.5.0",
|
|
54
|
-
"nyc": "^
|
|
44
|
+
"nyc": "^11.0.2",
|
|
55
45
|
"raw-loader": "^0.5.1",
|
|
56
46
|
"should": "^11.2.0",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
47
|
+
"standard-version": "^4.2.0",
|
|
48
|
+
"style-loader": "^0.18.2",
|
|
59
49
|
"webpack-dev-server": "^2.4.1",
|
|
60
|
-
"webpack-merge": "^
|
|
50
|
+
"webpack-merge": "^4.0.0"
|
|
61
51
|
},
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">= 4.3 < 5.0.0 || >= 5.10"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"node-sass": "^4.0.0",
|
|
57
|
+
"webpack": "^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"sass",
|
|
61
|
+
"libsass",
|
|
62
|
+
"webpack",
|
|
63
|
+
"loader"
|
|
64
|
+
],
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "git://github.com/webpack-contrib/sass-loader.git"
|
|
68
|
+
},
|
|
69
|
+
"bugs": {
|
|
70
|
+
"url": "https://github.com/webpack-contrib/sass-loader/issues"
|
|
71
|
+
},
|
|
72
|
+
"homepage": "https://github.com/webpack-contrib/sass-loader"
|
|
67
73
|
}
|