Replies: 1 comment 2 replies
-
@ijjk Out of curiosity, did you move this subject here because the Vercel team has no intention of implementing this feature? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
I would like to see Next.js take advantage of the
media
attribute in<link>
tags to allow for better code-splitting of CSS.Describe the solution you'd like
When outputting CSS that includes media-queries, such as
There are some PostCSS plugins that allow for that output to be split into separate files, such as postcss-extract-media-query:
I would like for such a configuration to be possible through the
next.config.js
(or other means if not that one).Describe alternatives you've considered
Due to the nature of Next.js of handling the loading of all files itself, it is currently not possible (to my knowledge) to use any alternative means to correctly achieve this end.
Beta Was this translation helpful? Give feedback.
All reactions