Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 613 Bytes

File metadata and controls

27 lines (20 loc) · 613 Bytes

Random tailwind class : https://github.com/sonofmagic/tailwindcss-mangle/tree/main/packages/unplugin-tailwindcss-mangle

  • npm i -D unplugin-tailwindcss-mangle tailwindcss-patch
  • npx tw-patch install
  • add script :
  "scripts": {
    "prepare": "tw-patch install"
  },
  • npx tw-patch extract
  • register plugin (vite.config.js):
import utwm from "unplugin-tailwindcss-mangle/vite";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [utwm()],
});
  • run the script : npm run build (build) / npm run serve (preview)