To use LESS with WordPress, the simplest/fastest solution I could think of seems to be:
- When done, compile the LESS file into CSS and overwrite the stylesheet used in production.
This also means you get different stylesheets for dev and production.
This goes into functions.php:
Now if you are logged in as admin, the LESS file will be compiled in your browser, everyone else gets the regular CSS files in your header.
Once you’ve finished development, you’ll need to manually compile the LESS file into regular CSS and overwrite the old stylesheet. You can use an online LESS compiler or get a desktop app. I develop on my personal Linode, so I just use lessc command-line tool.
This is a quick and dirty solution so I assume there is probably a better way.