All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- perf: avoid using
klona
for postcss options (#658) (e754c3f)
- bug with loading configurations after updating
cosmiconfig
to version 8.2 (684d265)
- use
cause
to keep original errors and warnings (#655) (e8873f4)
- warning and error serialization (65748ec)
- use
jiti
for typescript configurations (#649) (8b876fa)
- add support for TypeScript based configs (#632) (c6b5def)
- support ESM version of
postcss.config.js
and postcss.config.mjs
(#614) (955085f)
- unexpected failing on CSS syntax error (#593) (888d72e)
- minimum supported
Node.js
version is 14.15.0
- do not swallow exception from postcss (2eec42b)
- allow
String
value for the "implementation" option (0d342b1)
- minimum supported
Node.js
version is 12.13.0
(#526)
- check postcss as project dependency (570db67)
- add support for
dir-dependency
message type (#524) (91dea60)
- support
ecma
modules for the 'parser', 'stringifier' and 'syntax' options (#519) (cc69754)
- added support for registering
context
, build
and missing
dependencies (#518) (9ce4972), please read docs
- minimum supported
webpack
version is 5
- partial compatibility with
postcss-cli
, added api.env
(alias for api.mode
) and api.options
(contains options from the postcssOptions
options), please look at the example for more details (#498) (84a9c46)
- source map generation with the
map
option for postcss
(#476) (6babeb1)
- 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
- 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
- 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)
- you don't need
ident
option for loader
Object
syntax for the plugin
option is soft deprecated, please migrate on Array
syntax (plugins: ['postcss-preset-env', ['cssnano', options]]
)
- index: add ast version (
meta.ast
) (f34954f)
- index: emit
warnings
as an instance of {Error}
(8ac6fb5)
- options: improved
ValidationError
messages (549ea08)
- package: update
postcss
v6.0.0...7.0.0 (dependencies
) (#375) (daa0da8)
- package: requires
node >= v6.0.0
- package: config memory leak, updates
postcss-load-config
v1.2.0...2.0.0 (dependencies
) (0547b12)
- restore loader object in postcss config context (#355) (2ff1735)
- options: revert additionalProperties changes to keep SemVer (bd7fc38)
- options: disallow additional properties and add
ident
to validation (#346) (82ef553)
- index: continue watching after dependency
{Error}
(#332) (a8921cc)
- index: pass AST (
result.root
) && Messages (result.messages
) as metadata to other loaders (#322) (56232e7)
- index: copy loader
options
before modifying (#326) (61ff03c)
- lib/options: handle
{Object}
return (options.plugins
) (#301) (df010a7)
- schema: allow to pass an
{Object}
(options.syntax/options.stringifier
) (#300) (58e9996)
- regression with
options.plugins
{Function}
(webpack.config.js
) (#229) (dca52a9)
- index:
postcss.config.js
not resolved correctly (options.config
) (faaeee4)
- index: update validation schema, better warning message (4f20c99)
- index: don't fail on 'sourceMap: false' && emit a warning instead, when previous map found (
options.sourceMap
) (159b66a)
- index: 'No PostCSS Config found' (
options.config
) (#215) (e764761)
- index: 'Cannot create property
prev
on boolean false
' (options.sourceMap
) (c4f0064)
- index: add ctx, ctx.file, ctx.options (0dceb2c)
- index: add options validation (2b76df8)
- Remove
postcss-loader-before-processing
warning (by Michael Ciniawsky).
- Fix deprecated warning (by Xiaoyu Zhai).
- Fix conflict with CLI
--config
argument (by EGOIST).
- Allow object in syntax options, not only path for require (by Jeff Escalante).
- Watch
postcss.config.js
for changes (by Michael Ciniawsky).
- Fix relative
config
parameter resolving (by Simen Bekkhus).
- Add
config
parameter (by sainthkh).
- Fix
this
in options function (by Jeff Escalante).
- PostCSS common config could be placed to subdirs.
- Add webpack instance to PostCSS common config context.
- Add common PostCSS config support (by Mateusz Derks).
- Add Webpack 2 support with
plugins
query option (by Izaak Schroeder).
- Add
dependency
message support.
- Rewrite docs (by Michael Ciniawsky).
- Add
exec
parameter (by Neal Granger).
- Add CSS syntax highlight to syntax error code frame.
- Fix Promise API (by Daniel Haus).
- Add
postcss-loader-before-processing
webpack event (by Jan Nicklas).
- Better syntax error message (by Andrey Popp).
- Add
sourceMap
parameter to force inline maps (by 雪狼).
- Fix plugin in simple array config.
- Allow to pass syntax, parser or stringifier as function (by Jeff Escalante).
- Fix source map support (by Andrew Bradley).
- Add postcss-js support (by Simon Degraeve).
- Added argument with webpack instance to plugins callback (by Maxime Thirouin).
- Use PostCSS 5.0.
- Remove
safe
parameter. Use Safe Parser.
- Add
syntax
, parser
and stringifier
parameters.
- Fix string source map support (by Jan Nicklas).
- Set plugins by function for hot reload support (by Stefano Brilli).
- Fix error on empty PostCSS config.
- Better check for
CssSyntaxError
.
- Fixed invalid sourcemap exception (by Richard Willis).
- Use only Promise API to catch PostCSS errors.
- Add PostCSS asynchronous API support.
- Fix source map support (by Richard Willis).
- Add warnings API support.
- Better output for CSS syntax errors.