postcss-loader
Advanced tools
Changelog
4.0.0 (2020-09-07)
Node.js
version is 10.13
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 docssourceMap
default value depends on the compiler.devtool
optioninline
value was removed for the sourceMap
option, please use { map: { inline: true, annotation: false } }
to achieve thissources
css-loader
/file-loader
/raw-loader
to inject code inside bundleexec
option was renamed to the execute
optionconfig
option doesn't support Object
type anymore, config.path
and config.ctx
options were removedFunction
notation (previously config.ctx
) was changed, now it contains { file, mode, webpackLoaderContext }
webpack
to webpackLoaderContext
plugins
option from the config and options are merged (0eb5aaf)postcssOptions
options can be Function
default
export for plugins (#465) (3d32c35)map
option from loader options and config (#458) (98441ff)ident
option for loaderObject
syntax for the plugin
option is soft deprecated, please migrate on Array
syntax (plugins: ['postcss-preset-env', ['cssnano', options]]
)<a name="3.0.0"></a>