Anybody have experience using Tailwind CSS with Codeigniter 4?
I followed the steps to use the Tailwind CLI, but when I run
Code:
npx tailwindcss -i public/css/input.css -o public/css/output.css --watch;
I get warnings
Code:
warn - No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.
warn - https://tailwindcss.com/docs/content-configuration
Here is my tailwind.config.js file
Code:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: {
relative: true,
files: ["./app/Views/*.php", "./public/*.js"],
},
theme: {
extend: {},
},
plugins: [],
};
I think it's an issue with the content part of the tailwind config file but I can't for the life of me figure out what's wrong.