segmentio / myth

A CSS preprocessor that acts like a polyfill for future versions of the spec.
4.32k stars 130 forks source link

Inlining URL imports #81

Closed runeimp closed 10 years ago

runeimp commented 10 years ago

I'm currently getting errors when parsing CSS files that import using a full URL, e.g, Google Fonts reference: @import url(http://fonts.googleapis.com/css?family=Roboto+Slab:400,700);

Can Myth (probably would actually be rework-inline/rework-import) simply ignore @import statements where the URI starts with http: or // ?

MoOx commented 10 years ago

I just fixed that issue in rework-import (rework-inline has been merged with this one). So this should work as expected in master now. (see https://github.com/reworkcss/rework-import/commit/72dc1b1eebf7741eab939aa1fda3876409034a84)