File tree 1 file changed +2
-2
lines changed
heft-plugins/heft-sass-plugin/src 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2
2
// See LICENSE in the project root for license information.
3
3
4
+ import * as path from 'path' ;
4
5
import { render , Result , SassError } from 'node-sass' ;
5
6
import * as postcss from 'postcss' ;
6
7
import cssModules from 'postcss-modules' ;
@@ -168,8 +169,7 @@ export class SassProcessor extends StringValuesTypingsGenerator {
168
169
* Partial filenames always begin with a leading underscore and do not produce a CSS output file.
169
170
*/
170
171
private _isSassPartial ( filePath : string ) : boolean {
171
- const lastSlashIndex : number = filePath . lastIndexOf ( '/' ) ;
172
- return filePath . charAt ( lastSlashIndex + 1 ) === '_' ;
172
+ return path . basename ( filePath ) [ 0 ] === '_' ;
173
173
}
174
174
175
175
private async _transpileSassAsync (
You can’t perform that action at this time.
0 commit comments