Files
cs249r_book/interviews/staffml/postcss.config.js
Vijay Janapa Reddi efb71ac52f fix(staffml): migrate to Tailwind CSS v4 PostCSS plugin
StaffML pins tailwindcss ^4.2.4 but its postcss.config.js still
referenced 'tailwindcss' as a plugin, the v3 entrypoint that v4
removed. CI build was failing with: 'It looks like you're trying
to use tailwindcss directly as a PostCSS plugin. The PostCSS
plugin has moved to a separate package, install @tailwindcss/postcss.'

Changes:
  - Add @tailwindcss/postcss ^4.2.4 to devDependencies (lock updated).
  - postcss.config.js now references '@tailwindcss/postcss' instead
    of 'tailwindcss'.
  - globals.css switches from the legacy '@tailwind base/components/
    utilities' triple-directive to the v4 single-line '@import
    "tailwindcss";' which the new plugin expects.
2026-04-27 15:28:15 -04:00

7 lines
94 B
JavaScript

module.exports = {
plugins: {
"@tailwindcss/postcss": {},
autoprefixer: {},
},
};