@empjs/plugin-tailwindcss

base tailwind 4
6,986 2,397
Install
npm install @empjs/plugin-tailwindcss
Latest Version:4.0.1
License:MIT
Last Updated:Oct 1, 2026
Links: GitHub  ·  npm
Maintainer: ron0115

@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
@halobear/vue-upload

vue上传组件

460 1
vite-plugin-vue2

Vite plugin for Vue2

1,474,659 618
vue-jstree

a tree plugin for vue2

137,015 630
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
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