Skip to content

Commit

Permalink
perf(tailwindcss): optimize Tailwind CSS for production with cssnano
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurezakfarah committed Dec 1, 2024
1 parent 3758e2a commit 5d760e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postcss.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
},
};

Expand Down

0 comments on commit 5d760e3

Please sign in to comment.