duojs / duo

A next-generation package manager for the front-end
3.42k stars 118 forks source link

Backslash urls when using duo on Windows #481

Open SittingCandle opened 9 years ago

SittingCandle commented 9 years ago

When using duo on windows, the generated urls on CSS have backslashes instead of slashes, which breaks them all. Example CSS: background: url('components\kpwebb-select2@3.4.8\select2.png')

Server running: http://localhost:8765/build/componentskpwebb-select2@3.4.8select2.png Failed to load resource: the server responded with a status of 404 (Not Found)

Could you please advise how to solve?

stephenmathieson commented 9 years ago

looks like it's this: https://github.com/duojs/pack/blob/3.0.5/lib/css/index.js#L87