Skip to content

Instantly share code, notes, and snippets.

@Pilotin
Pilotin / tailwindcss-postcss-autoprefixer-cssnano.md
Last active June 8, 2024 19:05
TailwindCSS + PostCSS + AutoPrefixer + CSS Nano Install

Setup

  • Create new working folder /tailwind/. Open in terminal
  • run npm init -y
  • run npm install tailwindcss @tailwindcss/custom-forms postcss-cli autoprefixer postcss-nested cssnano
  • run npx tailwind init
  • Edit tailwind.config.js and replace plugins: [], with:
plugins: [