Devon Govett, the creator of Parcel, has released Parcel CSS, described in the project's own words as "a CSS parser, transformer, and minifier written in Rust." The release was announced on social media and points toward a faster, more consolidated approach to CSS processing.

What it does

The tool's documented capabilities cover the jobs usually split across several utilities:

  • Minification
  • Vendor prefixing
  • CSS modules support (the classic CSS Modules library, not the native CSS modules specification)
  • Sourcemap generation

These functions are built in rather than delegated. Autoprefixer and cssnano appear in the project's package.json, which initially suggested the tool wrapped them, but Parcel CSS is a replacement for those packages rather than a consumer of them.

Syntax lowering

The most significant capability is what the project calls syntax lowering: writing future CSS, including features such as native nesting, and compiling it down to syntax browsers currently support. It's the CSS counterpart to what Babel does for JavaScript and is close in spirit to postcss-preset-env.

Speed

Performance is a central selling point for the Rust implementation.

Tow line charts chowing how fast Parcel CSS bundles packages and how small the resulting files are.
Parcel CSS is fast and outputs small files. (Source: @devongovett)

Bundling remains outside its scope

Parcel CSS does not handle bundling on its own. Doing so would require inventing syntax, since native CSS @import carries the same ambiguities that Sass has had to work around — a path the tool's author appears content to avoid. That leaves an open gap for developers who split CSS into smaller files and bundle them in development without adopting Parcel itself.

Ecosystem questions

If Parcel CSS becomes the CSS parser of choice, the next question is whether it will attract plugins and grow an ecosystem comparable to what PostCSS offers. Nothing in the initial release settles that.