Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to @parcel/css by default #7821

Merged
merged 5 commits into from
Mar 18, 2022
Merged

Move to @parcel/css by default #7821

merged 5 commits into from
Mar 18, 2022

Conversation

devongovett
Copy link
Member

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 cssnano config file is found

image

  • 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.
    image

  • 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.
    image

@height
Copy link

height bot commented Mar 12, 2022

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@devongovett devongovett merged commit 96c847b into v2 Mar 18, 2022
@devongovett devongovett deleted the parcel-css-default branch March 18, 2022 16:44
gorakong pushed a commit that referenced this pull request Nov 3, 2022
* upstream/v2:
  Upgrade Flow to 0.174.1 (#7849)
  v2.4.0
  v2.4.0 changelog
  Bump Parcel CSS
  Dynamic imports priority fix closes #6980 (#7061)
  fix(transformers): errors.map is not a function (#7672)
  Make NodeResolver check realpath before resolving with `source` entry (#7846)
  docs: fix wrong location documents (#7689)
  Fix: escape double quote of url value in CSS `url()` (#7718)
  Update @parcel/css and add diagnostic for url dependencies in custom properties (#7845)
  Use relative path for bundle labels in bundle analysis (#7737)
  Allow use react-jsx transform in React 16.14.0 (#7728)
  Move to @parcel/css by default (#7821)
  Feature: pick PORT number also from .env file (#7819)
  Enable parsing static initialization blocks (#7839)
  Bump swc and prevent pure comment removal (#7833)
  Bump swc (#7777)
  Human readable file size in bundle analyzer report (#7766)
  Improve emoji support detection (#7775)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants