npm postcss 8.1.0
8.1 “Duke Gemory”

latest releases: 8.4.38, 8.4.37, 8.4.36...
3 years ago

Duke Gemory seal

PostCSS 8.1 fixed the new visitor API from the 8.0 release.

We fixed Root and RootExit re-calling on children's changes. And now visitors will visit the parent again if nested children were changed.

We added Once and OnceExit events, which will not be called again on node changes. You can use them to lint files or collect statistics:

module.exports = {
  postcssPlugin: 'postcss-linter',
  OnceExit (root) {
    lint(root)
  }
}
module.exports.postcss = true

We updated Migration guide according to new changes.

Don't miss a new postcss release

NewReleases is sending notifications on new releases.