From feb6bb7543a0909ce560a28941361b8ee988f7aa Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Mon, 8 Aug 2016 19:09:43 -0700 Subject: [PATCH] feat: improve import handling for partials starting with _ prefix --- lib/converter.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/converter.js b/lib/converter.js index 68687ac..1e728c8 100644 --- a/lib/converter.js +++ b/lib/converter.js @@ -13,8 +13,11 @@ function convert(logger, projectDir, options) { var sassImportPath = path.join(projectDir, 'app/'); console.log("SASS Import Path", sassImportPath); - var sassFiles = glob.sync(sassFilesPath).filter(function(fileName){ - return fileName.indexOf("App_Resources") === -1; + var sassFiles = glob.sync(sassFilesPath).filter(function(filePath){ + var path = filePath; + var parts = path.split('/'); + var filename = parts[parts.length - 1]; + return path.indexOf("App_Resources") === -1 && filename.indexOf("_") !== 0; }); if(sassFiles.length === 0){