davidguttman / cssify

Simple middleware for Browserify to add css styles to the browser.
122 stars 19 forks source link

Fix unescaped slash issues on Windows. #52

Closed ses4j closed 8 years ago

ses4j commented 8 years ago

See issue #46.

cssify is totally broken on Windows because the Windows backslashes generated by path.relative are being dropped into the moduleSource unescaped and therefore are disappearing. The fix is to escape them or use unixy forward-slashes. I modified process-css.js trivially:

requirePath = requirePath.replace(/\/g, '/');

davidguttman commented 8 years ago

Awesome, thanks for the fix!

davidguttman commented 8 years ago

In v1.0.3

ses4j commented 8 years ago

wow, that was fast!