Is it feasible to adjust NextJS link stylesheets depending on media queries in the context of using css modules? Here is an example:
CSS module file:
@media(max-width: 800px) {
.myClass{
/* ...mobile styles */
}
}
@media(min-width: 800px) {
.myClass{
/* ...desktopstyles */
}
}
.myClass {
/* all media styles */
}
How NextJS generates the links:
<link rel="stylesheet" href="/_next/static/css/<bundle-number>.css">
Desired outcome:
<link rel="stylesheet" href="/_next/static/css/<bundle-number-desktop>.css" media="(min-width: 800px)">
<link rel="stylesheet" href="/_next/static/css/<bundle-number-mobile>.css" media="(max-width: 800px)">
<link rel="stylesheet" href="/_next/static/css/<bundle-number-all-medias>.css" data-n-p="">
In my investigations, I have not yet discovered a solution to this issue.