@coralogix/vite-plugin-galeforcecs (英语)
虚拟插件 盖勒福斯CSS页:1
Rust-power-tailwind CSS v3-兼容编译器. 空投替换
tailwindcss v3在Vite工程中: 配置相同,指令相同,输出相同,
23x更快的构建和分毫升HMR.
不是官方的"尾风实验室"计划 GaleforceCSS 是一个独立的港口,属于 尾风 CSS v3, 被钉入
[email protected]成为它符合的神谕.
安装
npm install -D @coralogix/vite-plugin-galeforcecss
使用量
// vite.config.js
import { defineConfig } from 'vite'
import galeforcecss from '@coralogix/vite-plugin-galeforcecss'
export default defineConfig({
plugins: [galeforcecss()],
})
你现在 @tailwind 编号 : @apply 编号 : theme() 编号 : @layer 指令为:
由Vite的CSS管道进行处理。 没有app- side 导入, 没有 PostCSS
需要配置 .
/* src/index.css - unchanged */
@tailwind base;
@tailwind components;
@tailwind utilities;
选项
全部可选 :
galeforcecss({
config: 'tailwind.config.js', // auto-discovered if omitted
content: ['src/**/*.{html,ts}'], // defaults to tailwind.config `content`
minify: true, // defaults to Vite's build.cssMinify
sourceMap: true, // defaults to Vite's build.sourcemap
targets: { chrome: '95' }, // Lightning CSS browser targets
})
文档
许可证
Apache 许可证 2.0. 版权 2026 Corlogix Ltd.