IDE marking used CSS selectors as "never used"

I wanted to use some php code in my css file, so I changed the extention of the file to .php instead of .css. Since then PhpStorm gives me a warning for every selector saying they are "never used" even though they are. How would I make the warnings work correctly again so I only get a warning saying a selector isn't used if it actually isn't?

1
3 comments

Please check the following ticket, it seems to be related:

https://youtrack.jetbrains.com/issue/WEB-12953

This one could be also relevant:

https://youtrack.jetbrains.com/issue/WEB-10870

1

Thanks! Unfortunately no answer has been found for either of the problems described in those tickets either.

0

Well, actually, both of these tickets are still in the "Open" state. If these are not your case, could you please share one example from your scenario?

0

Please sign in to leave a comment.