Closed kukac7 closed 1 year ago
after back to tailwind.config.cjs and module.exports config, works.
@kukac7 this is because you have imported Tailwind plugins using require()
which will not work for an ESM config file.
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
You will need to do something like this:
import tailwindFormsPlugin from '@tailwindcss/forms';
import tailwindTypographyPlugin from '@tailwindcss/typography';
/** @type {import('tailwindcss').Config} config */
const config = {
content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
theme: {
extend: {
colors: {}, // Extend Tailwind's default colors
},
},
plugins: [
tailwindFormsPlugin,
tailwindTypographyPlugin,
],
};
export default config;
@kellymears can we get Bud/Sage docs updated? I don't mind submitting a PR to explain this if it helps.
@codepuncher you're right, thanks!
Terms
Description
after update bud 6.12.0:
Steps To Reproduce
bud.config.js does not work with tailwind plugin.
Expected Behavior
running
Actual Behavior
Relevant Log Output
No response
Versions
10.5.1