Socket
Book a DemoInstallSign in
Socket

vite-plugin-tailwind

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-tailwind

vite tailwind plugin with jit compiler enabled

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
283
-6.29%
Maintainers
1
Weekly downloads
 
Created
Source

Vite Tailwind Plugin

This plugin heavily inspired by the vite-plugin-windicss and the Nuxt tailwind module

Features

  • zero-config
  • JIT enabled by default
  • Config viewer at /_tailwind/ (dont miss the trailing slash at the end)

Usage

just add this plugin into your vite.config.ts

import { defineConfig } from "vite";
import tailwind from "vite-plugin-tailwind";

export default defineConfig({
  plugins: [
    tailwind(),
  ],
});

see the examples folder for example XD

Todos

  • polish it up
  • add tests
  • test the viewer with WindiCss, and split it out to individual plugin

Keywords

vite

FAQs

Package last updated on 23 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts