Closed greypants closed 8 years ago
Good ol' Windows paths. I thought path.join
should normalize that. Maybe I need to do it explicitly.
Does this work for you?
var publicPath = path.normalize(config.tasks.js.dest + '/')
I forget why I needed that trailing slash... I'm sure I added it for a reason at some point. But I'll try it again without it.
nope, normalize doesn't work - I guess normalize replaces all / and \ with the appropriate character for the current OS. So for windows it will replace all with \ => but as this "path" is not used as "path" but as "url", it doesn't work.
Ah. Right, we're converting a windows path to a URL. Your suggestion sounds like it should be good enough. Will add.
@chaelli's description copied from https://github.com/vigetlabs/gulp-starter/pull/257#issuecomment-202039278
Update: