Skip to content

Instantly share code, notes, and snippets.

@Pilotin
Pilotin / tailwindcss-postcss-autoprefixer-cssnano.md
Last active August 9, 2024 17:14
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: [