mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 10:08:50 -05:00
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.
7 lines
94 B
JavaScript
7 lines
94 B
JavaScript
module.exports = {
|
|
plugins: {
|
|
"@tailwindcss/postcss": {},
|
|
autoprefixer: {},
|
|
},
|
|
};
|