Jeff Croft wrote an article today outlining the various ways in which you can process LESS/SASS.
Very simply, here’s precisely what I do with all my WordPress sites:
- Write my css to LESS file— called
- Use LiveReload to compile it immediately upon hitting save to a
style.cssfile. Every time I hit save, my
.cssfile automatically gets overwritten by the new changes.
- I commit both the
.lessfile and the
.cssfile to git and then to Github.
In doing it this way, WordPress never, ever needs to know I’m using LESS. I link to the
style.css file in the header as normal, and LiveReload happily serves it up every time I hit save.
Just as easy as that.