diff --git a/README.md b/README.md index 32e7d2a..88c212e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # opensphere-build-resolver -Resolves sources and other input for the Google Closure Compiler, sass for node-sass, template views for angular, and other items through a project's dependency tree. +Resolves sources and other input for the Google Closure Compiler, scss for sass/node-sass, template views for angular, and other items through a project's dependency tree. ## Problem -You want to use npm to manage your project and its dependencies, but you need to resolve source, css, sass, templates, or other resources from those dependencies and pass them as arguments on the command line to tools like the google-closure-compiler, node-sass, and others. +You want to use npm to manage your project and its dependencies, but you need to resolve source, css, scss, templates, or other resources from those dependencies and pass them as arguments on the command line to tools like the google-closure-compiler, sass/node-sass, and others. ## Solution This. diff --git a/package.json b/package.json index 6f02e45..2039702 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opensphere-build-resolver", "version": "8.0.0", - "description": "Resolves projects, their dependencies, plugins, and config to the correct arguments for compilation via the Google Closure Compiler, node-sass, and other tools.", + "description": "Resolves projects, their dependencies, plugins, and config to the correct arguments for compilation via the Google Closure Compiler, sass/node-sass, and other tools.", "bin": { "os-resolve": "./resolve.js" }, diff --git a/plugins/scss/index.js b/plugins/scss/index.js index dc119b9..e6136c0 100644 --- a/plugins/scss/index.js +++ b/plugins/scss/index.js @@ -156,9 +156,12 @@ const addScssRequires = function(pack, dir) { const writer = function(thisPackage, outputDir) { if (scssPaths.length || scssEntries.length) { - var options = { - 'include-path': scssPaths - }; + var options = {}; + if (thisPackage.build.scssCompiler === 'sass') { + options['load-path'] = scssPaths + } else { + options['include-path'] = scssPaths + } var args = [];