Munter / netlify-plugin-checklinks

Netlify build plugin check your links and asset references
BSD 3-Clause "New" or "Revised" License
89 stars 9 forks source link

Fails on CSS @import with media query #168

Open calmh opened 4 years ago

calmh commented 4 years ago

Hi! Thanks for this tool!

A CSS line like the following:

@import url(dark.css) (prefers-color-scheme: dark);

results in a failure with:

FAIL load _site/css/dark.css) (prefers-color-scheme: dark

that is, it tries to grab everything from the first parenthesis in url( to the last ending parenthesis ). I expect it should only grab the thing inside url(...).

Munter commented 4 years ago

Sounds like our css parser needs an update