You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm updating style-loader from 0.20.3 to 1.1.13
One of the changes I needed to do was to rename attr to attributes, however this doesn't write out the media attribute anymore (they are written out with with injectType: linkTag but not with the default setting aka injectType: styleTag ):
{loader: 'style-loader',options: {attrs: {media: 'only screen and (max-device-width: 800px)'}}}
to
{loader: 'style-loader',options: {attributes: {media: 'only screen and (max-device-width: 800px)'}}}
I will fix it, but my recommendation do not use the media attribute and refactor a code base using @media {} and code splitting, in next major release setup the media attributes will has no effect
I'm updating style-loader from 0.20.3 to 1.1.13
One of the changes I needed to do was to rename attr to attributes, however this doesn't write out the media attribute anymore (they are written out with with injectType: linkTag but not with the default setting aka injectType: styleTag ):
to
Expected Behavior
style tags contain the media attribute
Actual Behavior
style tags don't contain the media attribute
How Do We Reproduce?
use the config from above
full config:
The text was updated successfully, but these errors were encountered: