vite-plugin-windicss

πŸƒ Windi CSS for Vite ⚑️

MIT License

Downloads
235.4K
Stars
849

Bot releases are visible (Hide)

vite-plugin-windicss - v0.9.3

Published by github-actions[bot] over 3 years ago

Bug Fixes

  • ensure that the post request is successful (#97) (e9ea70e)
vite-plugin-windicss - v0.9.2

Published by github-actions[bot] over 3 years ago

Features

  • devtools: class name auto completion (f27859b)
vite-plugin-windicss - v0.9.1

Published by github-actions[bot] over 3 years ago

vite-plugin-windicss - v0.9.0

Published by github-actions[bot] over 3 years ago

"Design in DevTools"

βš—οΈ Experimental

It might be a common practice when you use the purge-based Tailwind where you have all the classes in your browser and you can try how things work by directly changing the classes in DevTools. While you might think this is some kind of limitation of "on-demand" where the DevTools don't know those you haven't used in your source code yet.

But unfortunately, we are here to BREAK the limitation 😎 See the video demo.

Just add the following line to your main entry

import 'virtual:windi-devtools'

It will be enabled automatically for you, have fun!

Oh and don't worry about the final bundle, in production build virtual:windi-devtools will be an empty module and you don't have to do anything about it :)

⚠️ Please use it with caution, under the hood we use MutationObserver to detect the class changes. Which means not only your manual changes but also the changes made by your scripts will be detected and included in the stylesheet. This could cause some misalignment between dev and the production build when using dynamically constructed classes (false-positive). We recommended adding your dynamic parts to the safelist or setup UI regression tests for your production build if possible.

πŸ’‘ Idea by @ElMassimo.

Features

vite-plugin-windicss - v0.8.4

Published by github-actions[bot] over 3 years ago

Bug Fixes

  • transform for screen variant groups, close #92 (1a456e2)
vite-plugin-windicss - v0.8.3

Published by github-actions[bot] over 3 years ago

Bug Fixes

vite-plugin-windicss - v0.8.2

Published by github-actions[bot] over 3 years ago

Bug Fixes

vite-plugin-windicss - v0.8.1

Published by github-actions[bot] over 3 years ago

vite-plugin-windicss - v0.7.2

Published by github-actions[bot] over 3 years ago

Bug Fixes

  • pug: invalid pug breaking builds (#74) (a659d92)

Features

  • support virtual: prefix (c01820e)
vite-plugin-windicss - v0.7.1

Published by github-actions[bot] over 3 years ago

Features

vite-plugin-windicss - v0.7.0

Published by github-actions[bot] over 3 years ago

vite-plugin-windicss - v0.6.11

Published by github-actions[bot] over 3 years ago

Bug Fixes

  • clear cache after generating (d21729f)
vite-plugin-windicss - v0.6.10

Published by github-actions[bot] over 3 years ago

Features

  • support attribute selector in preflight safelist, close #68 (26df7da)
vite-plugin-windicss - v0.6.9

Published by github-actions[bot] over 3 years ago

vite-plugin-windicss - v0.6.6

Published by github-actions[bot] over 3 years ago

Features

  • Allow users to provide a custom root to resolve files against (#66) (8b73962)
vite-plugin-windicss - v0.6.5

Published by github-actions[bot] over 3 years ago

Bug Fixes

vite-plugin-windicss - v0.6.4

Published by github-actions[bot] over 3 years ago

vite-plugin-windicss - v0.6.2

Published by github-actions[bot] over 3 years ago

Bug Fixes

vite-plugin-windicss - v0.6.1

Published by github-actions[bot] over 3 years ago

Features

  • automatically detect Pug support (817c28c)
vite-plugin-windicss - v0.6.0

Published by github-actions[bot] over 3 years ago

Features

Enable it by:

// vite.config.js
import WindiCSS, { PugTransformer } from 'vite-plugin-windicss'

export default {
  plugins: [
    WindiCSS({
      scan: {
        transformers: [
          PugTransformer(), // <--
        ],
      },
    }),
  ],
}