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

Hi, I am also experimenting with Tailwind... and running into some other things I am not quite sure how to solve.
@rmartin93 Have you managed to get it working? I did following the CLI install and doing this in my tailwind.config.js:
Code:
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./app/Views/*.{html,php,js}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

My input css / output css files are inside /public/css/ and I manage to get a build running the command
Code:
npx tailwindcss -i public/css/input.css -o public/css/output.css --watch;

It works, but i have to run the build every time I make a change and I am trying to get that done automatically. Any suggestion on how to improve this from anyone?
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
RE: Codeigniter 4 w/ Tailwind CSS - by dgvirtual - 01-06-2025, 11:00 AM
RE: Codeigniter 4 w/ Tailwind CSS - by Bosborne - 01-08-2025, 11:09 AM
RE: Codeigniter 4 w/ Tailwind CSS - by dgvirtual - 01-08-2025, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB