File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
core-build/gulp-core-build-sass/src Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ export class SassTask extends GulpTask<ISassTaskConfig> {
160
160
nodeSass . render ,
161
161
{
162
162
file : filePath ,
163
- importer : ( url : string ) => ( { file : _patchSassUrl ( url ) } ) ,
163
+ importer : ( url : string ) => ( { file : this . _patchSassUrl ( url ) } ) ,
164
164
sourceMap : this . taskConfig . dropCssFiles ,
165
165
sourceMapContents : true ,
166
166
omitSourceMapUrl : true ,
@@ -307,14 +307,14 @@ export class SassTask extends GulpTask<ISassTaskConfig> {
307
307
return Object . keys ( result ) ;
308
308
} ) ;
309
309
}
310
- }
311
310
312
- function _patchSassUrl ( url : string ) : string {
313
- if ( url [ 0 ] === '~' ) {
314
- url = 'node_modules/' + url . substr ( 1 ) ;
315
- } else if ( url === 'stdin' ) {
316
- url = '' ;
317
- }
311
+ private _patchSassUrl ( url : string ) : string {
312
+ if ( url [ 0 ] === '~' ) {
313
+ url = 'node_modules/' + url . substr ( 1 ) ;
314
+ } else if ( url === 'stdin' ) {
315
+ url = '' ;
316
+ }
318
317
319
- return url ;
318
+ return url ;
319
+ }
320
320
}
You can’t perform that action at this time.
0 commit comments