chyingp / grunt-inline

Brings externally referenced resources, such as js, css and images, into a single file.
MIT License
86 stars 55 forks source link

protocol-relative urls get messed up #27

Closed chyingp closed 10 years ago

chyingp commented 10 years ago

issue posted by monte-hayward. #25

A similar issue occurs with protocol-relative urls. url('//netdna.bootstrapcdn.com/font-awesome/3.2.0/font/fontawesome-webfont.eot?v=3.2.0') becomes url(../../../../../../netdna.bootstrapcdn.com/font-awesome/3.2.0/font/fontawesome-webfont.eot?v=3.2.0)

In my build, this url survives recess, uncss, and then gets altered by grunt-inline. Thanks for checking it out. Monte

chyingp commented 10 years ago

There is bug in detecting absolute url. It's fixed now, tried version 0.3.2 and see if the problem is still there :)