module.paths is a predefined variable containing all the node_modules search paths to find installed packages. It returns already an array in the current form:
It only checks for strings rather than for a path array. Is it safe to submit a PR for this change, or is there any reason more technical reason behind the check for the string story?
In my gulp task, I'd liked to do something like this.
module.paths
is a predefined variable containing all the node_modules search paths to find installed packages. It returns already an array in the current form:This hasn't worked as expected, so I had to convert it to a string instead.
Then I passed that into my sass compile task.
I guess I found the issue here:
https://github.com/dlmanning/gulp-sass/blob/c04bb67043fdbcb930152232ee9ba4caff0b2599/index.js#L122-L134
It only checks for strings rather than for a path array. Is it safe to submit a PR for this change, or is there any reason more technical reason behind the check for the string story?
Happy to contribute this small adjustment.