mini-css-extract-plugin
Advanced tools
Changelog
1.0.0 (2020-10-09)
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''
moduleFilename
option was removed in favor the filename
optionhmr
option was removed, HMR will work automatically when HotModuleReplacement
plugin used or webpack-dev-server
with enabled the hot
optionreloadAll
was removedchunkFilename
option can be a function for webpack@5To avoid problems between mini-css-extract-plugin
and style-loader
because of changing the esModule
option to true
by default we strongly recommend upgrading style-loader
to 2.0.0
version.