Update dependency postcss-loader to v4 (main) - autoclosed #1964
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.0
->4.0.0
By merging this PR, the issue #1432 will be automatically resolved and closed:
Release Notes
webpack-contrib/postcss-loader (postcss-loader)
v4.0.0
Compare Source
⚠ BREAKING CHANGES
Node.js
version is10.13
webpack
version is4
postcss
was moved topeerDependencies
, you need to installpostcss
PostCSS
(plugins
/syntax
/parser
/stringifier
) options was moved to thepostcssOptions
option, please look at docssourceMap
default value depends on thecompiler.devtool
optioninline
value was removed for thesourceMap
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 theexecute
optionconfig
option doesn't supportObject
type anymore,config.path
andconfig.ctx
options were removedFunction
notation (previouslyconfig.ctx
) was changed, now it contains{ file, mode, webpackLoaderContext }
webpack
towebpackLoaderContext
Features
plugins
option from the config and options are merged (0eb5aaf)postcssOptions
options can beFunction
Bug Fixes
default
export for plugins (#465) (3d32c35)map
option from loader options and config (#458) (98441ff)Notes
ident
option for loaderObject
syntax for theplugin
option is soft deprecated, please migrate onArray
syntax (plugins: ['postcss-preset-env', ['cssnano', options]]
)