tailwindcss-jit用于 Tailwind CSS 的 JIT 編譯器
tailwindcss-jit 是用于 Tailwind CSS 的 JIT 編譯器。
部分優(yōu)點:
- 構建速度極快
- 開箱即用地啟用所有變體
- 無需編寫自定義 CSS 即可生成任意樣式
- CSS 在開發(fā)和生產(chǎn)環(huán)境中保持一致
- 開發(fā)階段提供更好的瀏覽器性能
安裝和使用@tailwindcss/jit
npm install -D @tailwindcss/jit tailwindcss postcss autoprefixer
// postcss.config.js
module.exports = {
plugins: {
'@tailwindcss/jit': {},
autoprefixer: {},
}
}評論
圖片
表情
