Open tailwind.config.js
and specify the paths to all of your template files. This ensures that Tailwind can purge unused styles in production, optimizing your CSS bundle.
// tailwind.config.js
module.exports = {
content: [
"./src/**/*.{html,js}", // Adjust the paths according to your project structure
"./node_modules/flowbite/**/*.js", // Include Flowbite's components
],
theme: {
extend: {},
},
plugins: [
require('flowbite/plugin') // Include Flowbite's plugin
],
};