
內容簡介
WP Compiler 可以讓您在佈景主題或外掛中使用預處理的 CSS 和壓縮的 JS 能力,不需要任何複雜的安裝或建置工具。只需告訴 WP Compiler 您的原始檔案位置和編譯結果位置,然後將其設置為 Dev Mode。WP Compiler 會幫您監控原始檔案夾,並在任何檔案變更時重新編譯 CSS 和 JS。WP Compiler 支援 SCSS 和 LESS 預處理器,以滿足任何人的喜好。
當您準備啟動新網站時,只需關閉 Dev Mode,您的樣式和 Javascript 將被編譯和最小化,評論和原始將被移除。關閉 Dev Mode 後,Compiler 將停止監視原始資料夾,因此不會影響網站效能,但您仍然可以隨時在管理工具列中單擊編譯按鈕進行快速更改。
WP Compiler 依賴 scssphp、lessphp 和 minify。
如果有與底層編譯庫有關的特定問題,則應提交給其相應的開發人員。
外掛標籤
開發者團隊
原文外掛簡介
Harness the power of pre-processed CSS and minified JS in your theme or plugin, without any complicated installs or build tools. Simply tell WP Compiler where to find your source files and where to put the compiled results, then throw your install into Dev Mode. WP Compiler watches your source folders for you, and recompiles your CSS and JS on any file change. WP Compiler supports both SCSS and LESS precompilers for CSS, to suit anyone’s preference.
When you’re ready to launch a new site, just turn off Dev Mode, and your styles and javascript will be compiled & minimized and comments & source maps will be removed. With Dev mode disabled, Compiler will stop watching source directories, so there is no effect on site performance, but you can still apply a quick change at any time, by clicking the compile button in the admin toolbar.
WP Compiler relies on scssphp, lessphp, and minify.
Specific issues with the underlying compilation libraries should be submitted to their respective developers.
