postcss / postcss-import

PostCSS plugin to inline at-import rules content
MIT License
1.38k stars 115 forks source link

ensure that media params remain string values #558

Closed romainmenke closed 8 months ago

romainmenke commented 9 months ago

fixes : https://github.com/postcss/postcss-import/issues/557

romainmenke commented 9 months ago

Thank you for reviewing @RyanZim 🙇

I've added a separate plugin that always runs after postcss-import and checks the types of all AtRule AST nodes. This way we get maximum coverage for this aspect as it runs with each test case.

It tests a few more things than just atrule.params, just in case.