Parse CSS files with only @import statement #132

Closed
wsalembi opened this Issue Nov 15, 2013 · 2 comments

Projects

None yet

2 participants

@wsalembi

I had a font.css file with a single @import statement which couldn't be parsed by autoprefixer. I solved this by adding {} after the import.

Error:

Warning: Can't parse CSS: missing '{' near line 1:88 Use --force to continue.

font.css

@import url("//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=en");

@ai
Member
ai commented Dec 6, 2013

Autoprefixer 1.0 will fix it (because PostCSS has syntax tolerance parser).

@ai ai closed this Dec 11, 2013
@ai
Member
ai commented Dec 22, 2013

Released today in 1.0 version. 🎄 🎅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment