该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Blaze CSS

描述

With build tools like purgeCSS used by frameworks like TailwindCSS the need to remove all of the unused CSS classes from built CSS files has become an important factor.

However, these tools can only look in source files for classes that should be kept. Therefore any classes generated by WordPress, such as classes used in the post editor will not be considered and overpurging occurs.

This plugin allows solves this problem by:

  • Logging all classes from page requests
  • Generating a text file that can be used in your build process

安装

This section describes how to install the plugin and get it working.

  1. Upload wp-blaze-css to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Visit the pages that contain the classes you’d like to log and keep.
  4. A text file in /wp-content/uploads/blaze.csv will be generated for use with your build tools.

评价

此插件暂无评价。

贡献者及开发者

“Blaze CSS” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Blaze CSS”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.3

  • Fixed CSV generation from manual command.

1.1.2

  • Added settings menu.
  • Fixed PHP notices.
  • Vendor directory not being deployed properly.

1.0.1

  • Fixed some PHP notices.

1.0

  • First version.