rbtech / css-purge

A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.
http://rbtech.github.io/css-purge
MIT License
125 stars 19 forks source link

Parsing background: url with protocol agnostic url is broken #21

Closed ronnyvv closed 6 years ago

ronnyvv commented 6 years ago
$ css-purge -c ".foo { background: url("//example.com/test.png") ;}"
CSS Parser Error: probably have something funny in your CSS, change it then please try again.
Reason: missing '}'
Line: 1
Column: 23
$ css-purge -c ".foo { background: url("http://example.com/test.png") ;}"
.foo{background:url(http://example.com/test.png)}
ronnyvv commented 6 years ago

I've tracked the issue down to the code for removing non-standard comments.

AndrewEQ commented 6 years ago

Great, thanks @ronnyvv! Just been swamped over here.