Open matyushen opened 10 years ago
I am working on an utility called CSScompiler that probably would sort this issue. It is basically a helper class bundled with less.php and scssphp which simplifies compiling LESS and Sass/SCSS into CSS.
Since it has its own caching system (with optional MySQL support), it should have a nice performance.
It's still a WIP, but I am currently working hard on finishing it as soon as possible. If you're interested I suggest you keep an eye on it :bowtie:
Thanks, interesting to see the result!
@caiosm1005 how is your CSScompiler coming along?
I'm looking for an optimal and according to best practices solution for compiling less files on WordPress. I'm using redux framework. I was able to get things up and running but still have some major concerns. Compiling latest bootstrap takes about 5,8 sec according to redux and about 5,1 without fontawesome. With my custom styles on top of bootstrap compiling time boosts up to over 10 sec. Caching helps, after first cache it takes about half a second to reload styles. But the size of newly created cache folder is over 8mb and almost two times bigger with my custom styles. Also if I use caching with
parser
(like in my code above) compiling time stays on the same level, it drops only by usingLess_Cache
Have a look at my code, would be happy to hear any suggestions: