All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.2.0 (2021-08-04)
- hmr in browser extension (3d09da1)
2.1.0 (2021-07-05)
2.0.0 (2021-06-30)
In the current release we have fixed many problems with publicPath
, previously to generate relative URLs inside CSS files developers use different hacks: publicPath: ''
, publicPath: '../'
, using relative ../../
in the outputPath
option for file-loader
and etc. Now you don't need it anymore. Webpack v5 uses publicPath: "auto"
by default, which means to always generate relative URLs, and now mini-css-extract-plugin
does the same.
We strongly recommend use auto
value by default (except when using CDN).
We also want to show you that the file-loader
and url-loader
are outdated, please migrate on Asset Modules.
- minimum supported
Node.js
version is12.13.0
- minimum supported
webpack
version is5.0.0
- the
modules.namedExport
option was removed, you don't need it anymore, because we respect themodules.namedExport
option fromcss-loader
, just remove it - the
publicPath
option no longer automatically adds/
(trailing slash), you need to specify, you need to specify it yourself if it is absent, i.e. if you havepublicPath: "/my/public/path"
replace it withpublicPath: "/my/public/path/"
- generating correct relative
url()
for assets inside CSS files when you usepublicPath: "auto"
(default value)
1.6.2 (2021-06-28)
- performance improvement
1.6.1 (2021-06-25)
- memory leaks (c68aca7)
1.6.0 (2021-04-30)
1.5.1 (2021-04-28)
1.5.0 (2021-04-17)
1.4.1 (2021-04-07)
- ES5 compatibility (43e081f)
1.4.0 (2021-03-26)
1.3.9 (2021-02-25)
- allow consumers to access
CssModule
andCssDependency
(#703) (6484345) - allow to use
auto
value with thepublicPath
option (#709) (1be21d2)
1.3.8 (2021-02-18)
1.3.7 (2021-02-15)
- compatibility with webpack v5 (9b6b8b3)
1.3.6 (2021-02-08)
1.3.5 (2021-01-28)
- bloated runtime (#687) (70ce174)
- hmr runtime on preloaded stylesheet link (#686) (05e2951)
- yarn pnp compatibility (#688) (05b188a)
1.3.4 (2021-01-13)
1.3.3 (2020-12-10)
1.3.2 (2020-12-04)
1.3.1 (2020-11-12)
1.3.0 (2020-11-06)
Options are now validated according to stricter rules - no unknown additional properties. For example, if you have not removed the hmr
option for the loader when migrating to mini-css-extract-plugin@1
, you will get an error. Just remove them from your configuration(s). We did this because many developers started making these mistakes.
- schema (#652) (4e4733d)
- serializing big strings (#647) (022d945)
- source map url for devtool (only webpack@5) (#650) (5889d43)
1.2.1 (2020-10-27)
1.2.0 (2020-10-23)
1.1.2 (2020-10-22)
- compatibility with webpack@4 and webpack@5 for monorepos (#636) (3413439)
- error when reloading async chunk (#633) (89e7a0a)
1.1.1 (2020-10-20)
1.1.0 (2020-10-19)
1.0.0 (2020-10-09)
- minimum supported
Node.js
version is10.13.0
- the
esModule
option istrue
by default, you need to changeconst locals = require('./styles.css')
/require('./styles.css')
onimport locals from './styles.css'
/import './styles.css''
- the
moduleFilename
option was removed in favor thefilename
option - the
hmr
option was removed, HMR will work automatically whenHotModuleReplacement
plugin used orwebpack-dev-server
with enabled thehot
option - the
reloadAll
was removed
- the
chunkFilename
option can be a function for webpack@5
To 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.
0.12.0 (2020-10-07)
- opt-in to transitive only side effects (webpack@5), no more empty JS chunks
0.11.3 (2020-10-02)
0.11.2 (2020-09-12)
- cache for webpack@5 (6a27b30)
0.11.1 (2020-09-08)
0.11.0 (2020-08-27)
- named export (1ea4b7f)
- compatibility with webpack@5
0.10.0 (2020-08-10)
- add semicolon to avoid
Uncaught TypeError
on Webpack v5 (#561) (3974210) - enforce esm (#546) (b146549)
- partial compatibility with
webpack@5
(#477) (903a56e)
0.9.0 (2019-12-20)
0.8.2 (2019-12-17)
0.8.1 (2019-12-17)
- use filename mutated after instantiation (#430) (0bacfac)
- improve warning of conflict order (#465) (357d073)
- support ES module syntax (#472) (2f72e1a)
0.8.0 (2019-07-16)
0.7.0 (2019-05-27)
- do not attempt to reload unrequestable urls (#378) (44d00ea)
- fix
publicPath
regression (#384) (582ebfe) - enable using plugin without defining options (#393) (a7dee8c)
- downgrading normalize-url (#399) (0dafaf6)
- hmr do not crash on link without href (#400) (aa9b541)
- hmr reload with invalid link url (#402) (30a19b0)
0.6.0 (2019-04-10)
- added error code to chunk load Error (#347) (b653641)
- adding hot module reloading (#334) (4ed9c5a)
- publicPath can be a function (#373) (7b1425a)
0.5.0 (2018-12-07)
0.4.5 (2018-11-21)
0.4.4 (2018-10-10)
0.4.3 (2018-09-18)
0.4.2 (2018-08-21)
0.4.1 (2018-06-29)
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- Bug fix -
- Feature -
- Chore -
- Docs -