style-loader v3.0.0

v3.0.0
Added 2
  • add autoStyleTag and lazyAutoStyleTag values for the injectType option for compatibility with modern and IE8-IE9 browsers
  • add styleTagTransform option for custom processing of style tags
Changed 5
  • minimum supported Node.js version is now 12.13.0
  • minimum supported webpack version is now 5.0.0
  • the styleTag value of the injectType option no longer uses singleton style tag by default, instead using standard style tags for modern browsers
  • reduce size of generated code
  • reduce dependencies
Removed 1
  • the modules.namedExport option was removed

From style-loader

3.0.0 (2021-06-24)
⚠ BREAKING CHANGES
  • minimum supported Node.js version is 12.13.0
  • minimum supported webpack version is 5.0.0
  • the modules.namedExport option was removed, you don't need it anymore, because we respect the modules.namedExport option from css-loader (we just reexport all from css-loader), just remove it
  • the styleTag value of the injectType (default value) option earlier uses singleton style tag by default for IE8-IE9 due limitations (more information), in this release we have disabled this behavior, because these versions of IE are outdated, if you don't support these browsers this change does not affect you, if you require to support IE8-IE9, you can return old behaviour by setting autoStyleTag value for the injectType option (do the same for lazyStyleTag, i.e. change it to lazyAutoStyleTag)
Features
  • added autoStyleTag and lazyAutoStyleTag values for the injectType option for compatibility of work modern and IE8-IE9 browsers
  • added styleTagTransform option for custom processing style tags (useful if you need ponyfill CSS custom properties for IE8-IE10)
  • reduce size of generated code
  • reduce deps
View original

Upgraded? How did it go?

Discussion