File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ module.exports = function (content) {
43
43
if ( err . file === 'stdin' ) {
44
44
err . file = resourcePath ;
45
45
}
46
+ // node-sass returns UNIX-style paths
47
+ err . file = path . normalize ( err . file ) ;
46
48
47
49
// The 'Current dir' hint of node-sass does not help us, we're providing
48
50
// additional information by reading the err.file property
@@ -157,7 +159,12 @@ module.exports = function (content) {
157
159
// When files have been imported via the includePaths-option, these files need to be
158
160
// introduced to webpack in order to make them watchable.
159
161
function addIncludedFilesToWebpack ( includedFiles ) {
160
- includedFiles . forEach ( self . dependency ) ;
162
+ includedFiles . forEach ( addNormalizedDependency ) ;
163
+ }
164
+
165
+ function addNormalizedDependency ( file ) {
166
+ // node-sass returns UNIX-style paths
167
+ self . dependency ( path . normalize ( file ) ) ;
161
168
}
162
169
163
170
this . cacheable ( ) ;
You can’t perform that action at this time.
0 commit comments