If you spend any time developing themes, you will no doubt know that it is a manual process, which takes time. Themes often require careful tweaking and retesting; it can get particularly tedious when recompiling Less files!
Fortunately, there are a number of solutions available to relieve some of the tedium experienced when developing WordPress themes; the most popular option is to use a package we first met back in Chapter 2, Building a Less Development Toolkit. It's time to revisit using Grunt!
Note
For the more experienced, it is worth looking online for lessphp
, which is a port of Less to PHP. There is code available that allows direct compilation within WordPress, in much the same way as we will cover in this exercise.
Remember back in Chapter 2, Building a Less Development Toolkit, when we met Grunt for the first time?
Well, we're going to meet it again, as it is a perfect tool to help with compiling Less files as part...