gulp-task-loader icon indicating copy to clipboard operation
gulp-task-loader copied to clipboard

Gulp task loader fails if paths is given with different then OS path separator.

Open arnas opened this issue 8 years ago • 3 comments

For example if you provide path 'gulp-task/tasks' it will fail on windows as it uses different paths. Maybe there should be recommendation to pass paths using path library? . As you are using it internally in your code.

arnas avatar Nov 10 '17 21:11 arnas

@arnas could you please provide an example?

hontas avatar Nov 29 '17 19:11 hontas

yeah, sure. It may not be exact case that I encountered,. So for example if I use your module like this. require('gulp-task-loader')('path/to'); It won't work on windows, as windows requires backward slash. Maybe you should leave a note about this. That it's recommended that path would be provided using path.join.

arnas avatar Dec 15 '17 18:12 arnas

Fair enough... but better to just make it work. I'll look in to it.

hontas avatar Dec 17 '17 22:12 hontas