Skip to content

Latest commit

 

History

History
430 lines (201 loc) · 22.8 KB

CHANGELOG.md

File metadata and controls

430 lines (201 loc) · 22.8 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.2.0 (2021-08-04)

Features

  • add link and description for options (#786) (3c5a5b7)

Bug Fixes

  • hmr in browser extension (3d09da1)

2.1.0 (2021-07-05)

Features

2.0.0 (2021-06-30)

NOTES

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.

⚠ 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, 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 have publicPath: "/my/public/path" replace it with publicPath: "/my/public/path/"

Bug Fixes

  • generating correct relative url() for assets inside CSS files when you use publicPath: "auto" (default value)

1.6.2 (2021-06-28)

Bug Fixes

  • performance improvement

1.6.1 (2021-06-25)

Bug Fixes

1.6.0 (2021-04-30)

Features

1.5.1 (2021-04-28)

Bug Fixes

  • compatibility with named export and es5 (#751) (3be81bb)

1.5.0 (2021-04-17)

Features

  • add experimental support for importModule, improve perfomance (#737) (8471ac2)

1.4.1 (2021-04-07)

Bug Fixes

1.4.0 (2021-03-26)

Features

1.3.9 (2021-02-25)

Bug Fixes

  • allow consumers to access CssModule and CssDependency (#703) (6484345)
  • allow to use auto value with the publicPath option (#709) (1be21d2)

1.3.8 (2021-02-18)

Bug Fixes

1.3.7 (2021-02-15)

Bug Fixes

  • compatibility with webpack v5 (9b6b8b3)

1.3.6 (2021-02-08)

Bug Fixes

1.3.5 (2021-01-28)

Bug Fixes

1.3.4 (2021-01-13)

Bug Fixes

1.3.3 (2020-12-10)

Bug Fixes

  • serializing big strings in sourceMap (#665) (f7a5e53)

1.3.2 (2020-12-04)

Bug Fixes

1.3.1 (2020-11-12)

Bug Fixes

1.3.0 (2020-11-06)

⚠ POTENTIAL BREAKING CHANGE

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.

Features

  • added the type property for loading errors (#651) (be9ddcb)

Bug Fixes

1.2.1 (2020-10-27)

Bug Fixes

1.2.0 (2020-10-23)

Features

Bug Fixes

  • compatibility with webpack@4 and webpack@5 for monorepos (#638) (60c3eef)

1.1.2 (2020-10-22)

Bug Fixes

  • compatibility with webpack@4 and webpack@5 for monorepos (#636) (3413439)
  • error when reloading async chunk (#633) (89e7a0a)

1.1.1 (2020-10-20)

Bug Fixes

  • fix onerror message for async chunks (#629) (883079e)

1.1.0 (2020-10-19)

Features

  • added the attributes option (e8a2d5a)
  • added the insert option (a5f17c4)

Bug Fixes

1.0.0 (2020-10-09)

BREAKING CHANGE

  • minimum supported Node.js version is 10.13.0
  • the 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''
  • the moduleFilename option was removed in favor the filename option
  • the hmr option was removed, HMR will work automatically when HotModuleReplacement plugin used or webpack-dev-server with enabled the hot option
  • the reloadAll was removed

Features

  • the chunkFilename option can be a function for webpack@5

⚠ NOTICE

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)

Features

  • opt-in to transitive only side effects (webpack@5), no more empty JS chunks

0.11.3 (2020-10-02)

Bug Fixes

0.11.2 (2020-09-12)

Bug Fixes

0.11.1 (2020-09-08)

Bug Fixes

  • added cache serializer for webpack@5 (#581) (d09693e)

0.11.0 (2020-08-27)

Features

Bug Fixes

  • compatibility with webpack@5

0.10.0 (2020-08-10)

Features

Bug Fixes

0.9.0 (2019-12-20)

Features

0.8.2 (2019-12-17)

Bug Fixes

0.8.1 (2019-12-17)

Bug Fixes

0.8.0 (2019-07-16)

Features

0.7.0 (2019-05-27)

Bug Fixes

Features

0.6.0 (2019-04-10)

Features

0.5.0 (2018-12-07)

Features

  • add crossOriginLoading option support (#313) (ffb0d87)

0.4.5 (2018-11-21)

Bug Fixes

  • index: allow requesting failed async css files (#292) (2eb0af5)

0.4.4 (2018-10-10)

Bug Fixes

  • index: assign empty module.id to prevent contenthash from changing unnecessarily (#284) (d7946d0)

0.4.3 (2018-09-18)

Bug Fixes

  • loader: pass emitFile to the child compilation (loaderContext.emitFile) (#177) (18c066e)

0.4.2 (2018-08-21)

Bug Fixes

  • use correct order when multiple chunk groups are merged (#246) (c3b363d)

0.4.1 (2018-06-29)

Bug Fixes

  • CSS ordering with multiple entry points (#130) (79373eb)

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

x.x.x / --

  • Bug fix -
  • Feature -
  • Chore -
  • Docs -