Skip to content
Discussion options

You must be logged in to vote

I think the CSS pruning is the issue here, but I am a not as versed as I'd like to, in this process.

It is not tree-shaking, but rather, that Tailwind relies on a pruning to drop unused class names from the final CSS.

Maybe try:

// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/app/**/*.module.css", // <-- here
  ],
  theme: {
    extend: {
      backgroundImage: {
        "gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
        "gradient-conic":
          "conic-gradient(from 180deg…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kpvhn
Comment options

Answer selected by kpvhn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants