Skip to content

Commit 1195bc9

Browse files
author
Todd Anglin
authored
Merge pull request #5 from NathanWalker/improve-import-handling
feat: improve import handling for partials starting with _ prefix
2 parents d9e3bf9 + feb6bb7 commit 1195bc9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/converter.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ function convert(logger, projectDir, options) {
1313
var sassImportPath = path.join(projectDir, 'app/');
1414
console.log("SASS Import Path", sassImportPath);
1515

16-
var sassFiles = glob.sync(sassFilesPath).filter(function(fileName){
17-
return fileName.indexOf("App_Resources") === -1;
16+
var sassFiles = glob.sync(sassFilesPath).filter(function(filePath){
17+
var path = filePath;
18+
var parts = path.split('/');
19+
var filename = parts[parts.length - 1];
20+
return path.indexOf("App_Resources") === -1 && filename.indexOf("_") !== 0;
1821
});
1922

2023
if(sassFiles.length === 0){

0 commit comments

Comments
 (0)