All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
supports()
, layer()
and media
from @import
at-rules (b9a600c)insert
function through style.use()
(#535) (f8ef63b)insert
option from file, we strongly recommend do it, using the insert
option from file will reduce your bundle size, example (#521) (56fc8f0)styleTagTransform
option from file, we strongly recommend do it, using the styleTagTransform
option from file will reduce your bundle size, exampleNode.js
version is 12.13.0
webpack
version is 5.0.0
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 itstyleTag
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
)autoStyleTag
and lazyAutoStyleTag
values for the injectType
option for compatibility of work modern and IE8-IE9 browsersstyleTagTransform
option for custom processing style tags (useful if you need ponyfill CSS custom properties for IE8-IE10)Node.js
version is 10.13.0
esModule
option is true
by default, you need to change const locals = require('./styles.css')
/require('./styles.css')
on import locals from './styles.css'
/import './styles.css''
(#489) (727a24d)String
instead of Array
(#491) (7a0ce4c)To avoid problems between style-loader
and mini-css-extract-plugin
because of changing the esModule
option to true
by default we strongly recommend upgrading mini-css-extract-plugin
to 1.0.0
version.
linkTag
value (7ee8b04)8.9.0
wepback
version is 4.0.0
convertToAbsoluteUrls
option was removed, you don't need this anymoreattrs
option was renamed to the attributes
optiontransform
option was removed without replacementhmr
option was removed, webpack
automatically inject HMR code when it is required (when the HotModuleReplacementPlugin
plugin was used)sourceMap
option was removed. The loader automatically inject source maps if the previous loader emit themref
/unref
api methods were removed for useable
loader, please use the use
/unuse
api methodsstyle-loader/url
loader was removed in favor injectType
option (look the documentation about the injectType
option)style-loader/useable
loader was removed in favor injectType
option (look the documentation about the injectType
option)singleton
option was removed (look documentation about the injectType
option)insertAt
option was removed in favor the insert
option (look the documentation about the insert
option and examples)insertInto
options was removed in favor the insert
option (look the documentation about the insert
option and examples)HTMLIFrameElement
exist (#296) (9b46128)locals
(css-modules
) are unchanged (#298) (3a4cb53)transform
option validation ({String}
) (23c3567){Function}
(options.insertInto
) (e0c4b19)options.hmr
) (#264) (378e906)options.insertInto
) (#248) (25e8e89)options.insertAt
) (#253) (67120f8)loaderUtils.stringifyRequest
to avoid invalidating hashes due to absolute paths (#242) (97508ec)null
check to removeStyleElement
(#245) (0a4845c)