Skip to content

Commit

Permalink
Simplify CSS selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Dec 6, 2024
1 parent d924a9a commit d9799b8
Show file tree
Hide file tree
Showing 7 changed files with 423 additions and 435 deletions.
10 changes: 9 additions & 1 deletion assets/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const esbuild = require("esbuild");
const stylePlugin = require("esbuild-style-plugin");
const postcssImport = require("postcss-import");
const tailwind = require("tailwindcss");
const tailwindNesting = require("tailwindcss/nesting");
const postcssNesting = require("postcss-nesting");
const autoprefixer = require("autoprefixer");

const args = process.argv.slice(2);
Expand All @@ -27,7 +29,13 @@ async function main() {
plugins: [
stylePlugin({
postcss: {
plugins: [postcssImport, tailwind, autoprefixer],
plugins: [
postcssImport,
// See https://tailwindcss.com/docs/using-with-preprocessors#nesting
tailwindNesting(postcssNesting),
tailwind,
autoprefixer,
],
},
}),
],
Expand Down
Loading

0 comments on commit d9799b8

Please sign in to comment.