
內容簡介
現在有一些建構工具像是PurgeCSS被像TailwindCSS這樣的框架所使用,移除已建立的 CSS 檔案中所有未使用的 CSS 類別變得非常重要。
然而,這些工具只能在原始檔案中尋找到應該保留的類別。因此,WordPress 產生的任何類別,例如在文章編輯器中使用的類別都不會被考慮,進而產生過渡的移除。
該外掛解決了這個問題,方法如下:
記錄所有頁面請求的類別
產生一個文本檔,可以在建構過程中使用
外掛標籤
開發者團隊
原文外掛簡介
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
