Releases: webpack/postcss-loader
Releases · webpack/postcss-loader
v4.0.4
v4.0.3
v4.0.2
v4.0.1
v4.0.0
⚠ BREAKING CHANGES
- minimum supported
Node.jsversion is10.13 - minimum supported
webpackversion is4 postcsswas moved topeerDependencies, you need to installpostcssPostCSS(plugins/syntax/parser/stringifier) options was moved to thepostcssOptionsoption, please look at docssourceMapdefault value depends on thecompiler.devtooloption- the
inlinevalue was removed for thesourceMapoption, 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-loaderto inject code inside bundle execoption was renamed to theexecuteoption- the
configoption doesn't supportObjecttype anymore,config.pathandconfig.ctxoptions were removed - argument in the config for
Functionnotation (previouslyconfig.ctx) was changed, now it contains{ file, mode, webpackLoaderContext } - loader context in the config was renamed from
webpacktowebpackLoaderContext
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
pluginsoption from the config and options are merged (0eb5aaf) postcssOptionsoptions can beFunction
Bug Fixes
- compatibility with webpack@5 (#437) (ed50491)
defaultexport for plugins (#465) (3d32c35)- avoid mutations of loader options and config (#470) (cad6f07)
- respect the
mapoption from loader options and config (#458) (98441ff)
Notes
- you don't need
identoption for loader Objectsyntax for thepluginoption is soft deprecated, please migrate onArraysyntax (plugins: ['postcss-present-env', ['cssnano', options]])
v3.0.0
2018-08-08
Bug Fixes
- index: add ast version (
meta.ast) (f34954f) - index: emit
warningsas an instance of{Error}(8ac6fb5) - options: improved
ValidationErrormessages (549ea08)
Chores
BREAKING CHANGES
- package: requires
node >= v6.0.0
v2.1.6
2018-07-10
Bug Fixes
- package: config memory leak, updates
postcss-load-configv1.2.0...2.0.0 (dependencies) (0547b12)