You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I was trying to use two of your importers as an array of functions like the specs say:
importer: [globImporter(),moduleImporter()]
But it didn't work, only the first importer handled the import and so throwing an error when couldn't handle the import.
Reading the node-sass docs I found that you could return null if you want the next importer to handle it.
importer can be an array of functions, which will be called by LibSass in the order of their occurrence in array. This helps user specify special importer for particular kind of path (filesystem, http). If an importer does not want to handle a particular path, it should return null. See functions section for more details on Sass types.
I would have done it but I don't know how to go about it, should you return null in every case or should you check if this.options.importer is an array and is not last and stuff...
How would you go about it?
The text was updated successfully, but these errors were encountered:
Hey, I was trying to use two of your importers as an array of functions like the specs say:
But it didn't work, only the first importer handled the import and so throwing an error when couldn't handle the import.
Reading the node-sass docs I found that you could return
null
if you want the next importer to handle it.Here is the PR with more info about it.
I would have done it but I don't know how to go about it, should you return
null
in every case or should you check ifthis.options.importer
is an array and is not last and stuff...How would you go about it?
The text was updated successfully, but these errors were encountered: