We need to consider how to handle partials, and how we intend to enable the user to exclude them. The node-sass node API doesn't do anything to exclude them. The CLI, when importing from a directory uses the follow configuration:
Also, what happens if they want to take advantage of additional glob options, like 'follow'? While, less elegant, the following would maximize capability/versatility and would be very handy when mapping the CLI to the node API —
We need to consider how to handle partials, and how we intend to enable the user to exclude them. The
node-sass
node API doesn't do anything to exclude them. The CLI, when importing from a directory uses the follow configuration:If desired how should a user exclude partials, or any pattern they desire, in our Node API?
First, we could do nothing and they could simply do this —
However, what happens when they have more complex patterns, or multiple patterns? Should they be able to do something like this —
Also, what happens if they want to take advantage of additional glob options, like 'follow'? While, less elegant, the following would maximize capability/versatility and would be very handy when mapping the CLI to the node API —