[WordPress] 外掛分享: Blaze CSS

首頁外掛目錄 › Blaze CSS
WordPress 外掛 Blaze CSS 的封面圖片
10+
安裝啟用
尚無評分
1633 天前
最後更新
問題解決
WordPress 5.2+ v1.1.3 上架:2021-03-18

內容簡介

現在有一些建構工具像是PurgeCSS被像TailwindCSS這樣的框架所使用,移除已建立的 CSS 檔案中所有未使用的 CSS 類別變得非常重要。

然而,這些工具只能在原始檔案中尋找到應該保留的類別。因此,WordPress 產生的任何類別,例如在文章編輯器中使用的類別都不會被考慮,進而產生過渡的移除。

該外掛解決了這個問題,方法如下:

記錄所有頁面請求的類別
產生一個文本檔,可以在建構過程中使用

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

文章
Filter
Apply Filters
Mastodon