From f0de7d8af0f93d9a415aad5294bfda870873d8bc Mon Sep 17 00:00:00 2001 From: Joshua Kidd Date: Tue, 23 Jun 2015 09:56:35 -0600 Subject: [PATCH] Added assets paths for resolving bower compoents with an assets/ directory. In this case, bootstrap-sass has an assets/stylesheets/ directory, which importOnce was not looking in before. --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index 700520d..9148014 100644 --- a/index.js +++ b/index.js @@ -115,6 +115,13 @@ var getBowerNames = function getBowerNames(uri) { paths.push(path.resolve(bowerPath, core + '-sass', 'stylesheets', uri)); paths.push(path.resolve(bowerPath, 'sass-' + core, 'stylesheets', uri)); + paths.push(path.resolve(bowerPath, core, 'assets', uri)); + paths.push(path.resolve(bowerPath, core + '-sass', 'assets', uri)); + paths.push(path.resolve(bowerPath, 'sass-' + core, 'assets', uri)); + paths.push(path.resolve(bowerPath, core + '-sass', 'assets', 'stylesheets', uri)); + paths.push(path.resolve(bowerPath, 'sass-' + core, 'assets', 'stylesheets', uri)); + + paths.push(path.resolve(bowerPath, core, 'sass', uri)); paths.push(path.resolve(bowerPath, core + '-sass', 'sass', uri)); paths.push(path.resolve(bowerPath, 'sass-' + core, 'sass', uri));