Skip to content

Commit

Permalink
build(postcss): simplify PostCSS config
Browse files Browse the repository at this point in the history
Here’s hoping that the next update will drop this file altogether. The “next update” being the additon of Lightning CSS and Tailwind CSS 4. Can’t wait.
  • Loading branch information
yeskunall committed Jun 4, 2024
1 parent c0a5d1b commit e3306b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module.exports = {
plugins: [
require("postcss-import"),
// Extraneous step: this might be unneeded because I set `nesting` in `@astro/tailwind` as well
require("tailwindcss/nesting"),
require("tailwindcss"),
require("autoprefixer"),
...(process.env.NODE_ENV === "production"
? // eslint-disable-next-line @typescript-eslint/no-var-requires
[require("cssnano")({ preset: "advanced" })]
Expand Down

0 comments on commit e3306b2

Please sign in to comment.