块编辑器开发文档

@wordpress/postcss-plugins-preset

💡 云策文档标注

概述

@wordpress/postcss-plugins-preset 是一个用于 WordPress 开发的 PostCSS 可共享插件预设包,旨在简化 CSS 处理流程。它作为 Gutenberg 项目的一部分,以 monorepo 形式组织,支持 Node.js LTS 版本。

关键要点

  • 这是一个 PostCSS 插件预设包,专为 WordPress 开发设计,提供标准化的 CSS 处理工具集。
  • 安装方式:通过 npm 安装,命令为 npm install @wordpress/postcss-plugins-preset --save
  • 环境要求:需要 Node.js 的长期支持版本(Active LTS 或 Maintenance LTS),不兼容旧版本。
  • 项目结构:属于 Gutenberg 项目的 monorepo 中的独立包,每个包有特定用途,并发布到 npm 供 WordPress 和其他项目使用。
  • 贡献指南:如需贡献,请参考 Gutenberg 项目的主要贡献者指南。

📄 原文内容

PostCSS sharable plugins preset for WordPress development.

Installation

Install the module

npm install @wordpress/postcss-plugins-preset --save

Note: This package requires Node.js version with long-term support status (check Active LTS or Maintenance LTS releases). It is not compatible with older versions.

Contributing to this package

This is an individual package that’s part of the Gutenberg project. The project is organized as a monorepo. It’s made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to npm and used by WordPress as well as other software projects.

To find out more about contributing to this package or Gutenberg as a whole, please read the project’s main contributor guide.