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 moves the default CSS transformer and minifier to
@parcel/css
. The@parcel/transformer-css-experimental
plugin is now renamed to just@parcel/transformer-css
, replacing the old version.@parcel/optimizer-cssnano
remains, but it is no longer the default in@parcel/config-default
.This PR updates the docs accordingly: parcel-bundler/website#1012.
In addition, I've added some warnings that will hopefully help the upgrade process.
When a top-level
"modules": true
option, or"postcss-modules"
plugin with no configuration is seen in a PostCSS config file. This can be replaced with using the"cssModules": true
option for@parcel/transformer-css
.When
"autoprefixer"
or"postcss-preset-env"
is seen in a PostCSS config file. These are now redundant with Parcel's builtin transpilation features via@parcel/css
. This is similar to what we do for Babel. Not sure if we should have a way to suppress this one, given it's not 100% the same... but maybe we'll see how many problems it creates for people.