mikemaccana / sass-npm

Import SASS files from npm modules
7 stars 0 forks source link

Support node-sass importer CLI option #3

Open rahatarmanahmed opened 8 years ago

rahatarmanahmed commented 8 years ago

I'd like to use sass-npm from the command line (then i can truly have "npm everywhere"). node-sass supports an --importer CLI option that accepts a path to a js file that exports the importer function. Since sass-npm's importer is accessed via require('sass-npm').importer, this won't work right now.

We could have another file export the importer directly, and use that file. Or we could just do what #1 suggests.

rahatarmanahmed commented 8 years ago

Also seems like the options object passed in to this module is only used to set options.debug. This can easily be replaced with the debug package.