Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify CSS selectors #2891

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Simplify CSS selectors
jonatanklosko committed Dec 6, 2024
commit d9799b87e0c70b09c5d713d415c06b67fbfa4e8c
10 changes: 9 additions & 1 deletion assets/build.js
Original file line number Diff line number Diff line change
@@ -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);
@@ -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,
],
},
}),
],
Loading