Skip to content

Releases: webpack-contrib/postcss-loader

v4.0.3

02 Oct 12:37
Compare
Choose a tag to compare

4.0.3 (2020-10-02)

Bug Fixes

v4.0.2

15 Sep 16:34
Compare
Choose a tag to compare

4.0.2 (2020-09-15)

Bug Fixes

v4.0.1

08 Sep 16:56
Compare
Choose a tag to compare

4.0.1 (2020-09-08)

Bug Fixes

  • source map generation with the map option for postcss (#476) (6babeb1)

v4.0.0

07 Sep 17:18
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • minimum supported Node.js version is 10.13
  • minimum supported webpack version is 4
  • postcss was moved to peerDependencies, you need to install postcss
  • PostCSS (plugins/syntax/parser/stringifier) options was moved to the postcssOptions option, please look at docs
  • sourceMap default value depends on the compiler.devtool option
  • the inline value was removed for the sourceMap option, please use { map: { inline: true, annotation: false } } to achieve this
  • source maps contain absolute paths in sources
  • loader output only CSS, so you need to use css-loader/file-loader/raw-loader to inject code inside bundle
  • exec option was renamed to the execute option
  • the config option doesn't support Object type anymore, config.path and config.ctx options were removed
  • argument in the config for Function notation (previously config.ctx) was changed, now it contains { file, mode, webpackLoaderContext }
  • loader context in the config was renamed from webpack to webpackLoaderContext

Features

  • message API for emit assets (#443) (e966ab9)
  • reuse AST from other loaders (#468) (9b75888)
  • allows to use config and loader options together, options from the loader takes precedence over the config, the plugins option from the config and options are merged (0eb5aaf)
  • postcssOptions options can be Function

Bug Fixes

  • compatibility with webpack@5 (#437) (ed50491)
  • default export for plugins (#465) (3d32c35)
  • avoid mutations of loader options and config (#470) (cad6f07)
  • respect the map option from loader options and config (#458) (98441ff)

Notes

  • you don't need ident option for loader
  • Object syntax for the plugin option is soft deprecated, please migrate on Array syntax (plugins: ['postcss-present-env', ['cssnano', options]])

v3.0.0

08 Aug 17:47
Compare
Choose a tag to compare

2018-08-08

Bug Fixes

  • index: add ast version (meta.ast) (f34954f)
  • index: emit warnings as an instance of {Error} (8ac6fb5)
  • options: improved ValidationError messages (549ea08)

Chores

  • package: update postcss v6.0.0...7.0.0 (dependencies) (#375) (daa0da8)

BREAKING CHANGES

  • package: requires node >= v6.0.0

v2.1.6

10 Jul 14:55
Compare
Choose a tag to compare

2018-07-10

Bug Fixes

  • package: config memory leak, updates postcss-load-config v1.2.0...2.0.0 (dependencies) (0547b12)

v2.1.5

04 May 23:18
Compare
Choose a tag to compare

2018-05-04

Bug Fixes

v2.1.4

04 May 23:22
Compare
Choose a tag to compare

2018-04-16

Bug Fixes

  • restore loader object in postcss config context (#355) (2ff1735)

v2.1.3

04 May 23:24
Compare
Choose a tag to compare

2018-03-20

Bug Fixes

  • options: revert additionalProperties: false to keep semver (bd7fc38)

v2.1.2

17 Mar 20:46
Compare
Choose a tag to compare

2018-03-17

Bug Fixes

  • options: disallow additional properties and add ident to validation (#346) (82ef553)