Skip to content
Discussion options

You must be logged in to vote

I think you want this style:

@custom-variant sm (@media (min-width: 640px));
@custom-variant md (@media (min-width: 768px));
...

Do you get the error using those?

If you do, I would comment out this line:

'postcss-nesting': {},

Then I would run npm run dev again and see what the generated CSS looks like for the media queries. If you paste that code in here, I'd be happy to take a look and troubleshoot the Failed to parse selectors error.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sameasterling
Comment options

@gregsullivan
Comment options

Answer selected by sameasterling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants