1. windicss-webpack-plugin
<h1 align='center'>windicss-webpack-plugin</h1>
windicss-webpack-plugin
Package: windicss-webpack-plugin
Created by: windicss
Last modified: Thu, 14 Sep 2023 11:45:09 GMT
Version: 1.8.0
License: MIT
Downloads: 20,697
Repository: https://github.com/windicss/windicss-webpack-plugin

Install

npm install windicss-webpack-plugin
yarn add windicss-webpack-plugin

windicss-webpack-plugin

:leaves: Windi CSS for webpack️
Next generation utility-first CSS framework.

⚠️ Consider using UnoCSS instead,
it's a rebuild of the WindiCSS core with a lot of improvements and new features.


Status: Stable - Maintenance only
Made possible by my Sponsor Program 💖
Follow me @harlan_zw 🐦

Features

  • 🧩 On-demand CSS utilities (Compatible with Tailwind CSS v2) and preflights
  • 🍃 Load configurations from tailwind.config.js
  • 🤝 Framework-agnostic: Vue CLI, Nuxt, Next, UmiJS, etc!
  • 📄 Use directives in any CSS (SCSS, LESS, etc) @apply, @variants, @screen, @layer, theme(),
  • 🎳 Support Utility Groups - e.g. bg-gray-200 hover:(bg-gray-100 text-red-300)

Documentation

Read the documentation for more details.

New Webpack Plugin Features

Design in DevTools mode

Add the import with your existing windi imports and you'll have autocompletion in your Chrome DevTools! See "Design in DevTools" for
more information.

 import 'virtual:windi-devtools'

Thanks await-ovo!

New Windi v3.0 Features

Attributify Mode

Enabled it by

 // windi.config.ts
export default {
  attributify: true
}

And use them as you would like:

 <button 
  bg="blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600"
  text="sm white"
  font="mono light"
  p="y-2 x-4"
  border="2 rounded blue-200"
>
  Button
</button>

Alias Config

 // windi.config.ts
export default {
  alias: {
    'hstack': 'flex items-center',
    'vstack': 'flex flex-col',
    'icon': 'w-6 h-6 fill-current',
    'app': 'text-red',
    'app-border': 'border-gray-200 dark:border-dark-300',
  },
}

Sponsors

License

MIT License © 2022 - Present Harlan Wilton

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin