Welcome Guest, Not a member yet? Register   Sign In
Compile LESS or SASS with Codeigniter 3
#5

(This post was last modified: 02-10-2018, 09:23 PM by dave friend.)

(02-10-2018, 03:41 AM)Ajax30 Wrote: I want to use LESS instead of plain CSS in a Codeigniter 3 blog. Does Codeigniter have or support a LESS compiler? Alternatively, can I use SASS? How?

We all got real excited but failed to point out that using LESS and/or SASS has nothing to do with CodeIgniter. Both LESS & SASS are tools to help write CSS. Ultimately, plain old CSS files are created and put on the server. And no, they are not included with CI. But they are easily found and downloaded.

The real question is, does your IDE (or whatever you use to write code) support the desired tools? The IDE is the connection between the files you write (PHP, SASS, etc) and the build tools (compilers, etc). All the decent IDEs integrate this stuff pretty easy. That said, you'll probably spend a good bit of command line time getting the base level stuff that the IDE hooks into installed and running.

You can actually write LESS, SASS and plain CSS on the same project using the tools mentioned earlier.

How? Get out your Google and start finding tutorials.

Wait, wait. I forgot what had me so excited. I'd like to add my favorite item to skunkbad's list -- autoprefixer. It parses CSS and adds vendor prefixes to rules according to "Can I Use". It's a beautiful thing.
Reply


Messages In This Thread
RE: Compile LESS or SASS with Codeigniter 3 - by dave friend - 02-10-2018, 09:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB