Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 w/ Tailwind CSS
#1

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.
Reply


Messages In This Thread
Codeigniter 4 w/ Tailwind CSS - by rmartin93 - 01-26-2023, 04:34 PM
RE: Codeigniter 4 w/ Tailwind CSS - by InsiteFX - 04-09-2023, 11:28 PM
RE: Codeigniter 4 w/ Tailwind CSS - by kcs - 06-28-2023, 02:19 PM
RE: Codeigniter 4 w/ Tailwind CSS - by Corsari - 06-29-2023, 02:48 AM
RE: Codeigniter 4 w/ Tailwind CSS - by Reiji - 01-05-2024, 09:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB