@empjs/plugin-tailwindcss
@empjs/plugin-tailwindcss
base tailwindcss v4
安装
pnpm add @empjs/plugin-tailwindcss -D
pnpm add tailwindcss # 需要在落地项目安装,否则引入 CSS 会报错
使用
import pluginTailwindcss from '@empjs/plugin-tailwindcss'
import {defineConfig} from '@empjs/cli'
export default defineConfig(({mode, env}) => {
return {
plugins: [pluginTailwindcss()],
}
})
配置
tailwindcss 已经集成都插件、只需直接引入即可
import type {Config} from '@empjs/plugin-tailwindcss/tailwindcss'
export default {
important: '.tw-host',
} satisfies Config
Related Packages
@dullar/mercury
Advanced and highly reusable Mobile UI Components built on Vue2 & You can define...
8,553
6
vite-plugin-git-revision
Vite plugin that generates VERSION and COMMITHASH files during build based on a...
21,961
11
Version History
| Version | Released | License |
|---|---|---|
| 4.0.1 | MIT | |
| 4.0.0 | MIT | |
| 1.2.7 | MIT | |
| 1.2.6 | MIT | |
| 1.2.5 | MIT | |
| 1.2.4 | MIT | |
| 1.2.3 | MIT | |
| 1.2.2 | MIT | |
| 1.2.1 | MIT | |
| 1.2.0 | MIT | |
| 1.1.1 | MIT | |
| 1.1.0 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT |
Pre-releases (14)
| Version | Released | License |
|---|---|---|
| 4.0.0-rc.5 | MIT | |
| 4.0.0-rc.1 | MIT | |
| 4.0.0-beta.0 | MIT | |
| 4.0.0-alpha.3 | MIT | |
| 4.0.0-alpha.2 | MIT | |
| 4.0.0-alpha.1 | MIT | |
| 1.2.8-beta.4 | MIT | |
| 1.2.8-beta.3 | MIT | |
| 1.2.8-beta.2 | MIT | |
| 1.2.8-beta.1 | MIT | |
| 1.2.8-beta.0 | MIT | |
| 1.2.6-beta.0 | MIT | |
| 1.0.0-beta.2 | MIT | |
| 1.0.0-beta.1 | MIT |