Welcome Guest, Not a member yet? Register   Sign In
Integrating Bootstrap 5 into a CodeIgniter 4 Application
#5

(This post was last modified: 05-01-2024, 09:18 AM by captain-sensible. Edit Reason: typo )

what i do is have my sass code same level as app, public then i use "grunt" to watch and convert to css and stick it as .css in public/css directory. IN that directory i have my custom.css from the sass , bootstrap.css, font-face.css and "style.css" inside style.css i have
Code:
@import url("bootstrap.css");
@import url("custom.css");
@import url("font-face.css");

So i just then reference one stylesheet the style.css in layout header, because using import the rest is pulled in. Also by importing bootstrap.css first anything in custom that matches stuff in bootstrap will be over written, so no need to edit anything in bootstrap nor mess about with bootstrap sass to css

if im allowed to post link to source forge , you can look at how i integrated everything
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
RE: Integrating Bootstrap 5 into a CodeIgniter 4 Application - by captain-sensible - 05-01-2024, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB