Does anyone know the best way of using LESS CSS Preprocessor with Umbraco Cloud?
I can see a couple of LESS packages in the package repository, but none of them look like they work past 7.4. And I'm guessing non standard file types will be at the mercy of the Umbraco Cloud deploy anyway?
If there's no way that the cloud can compile the LESS to css, is there another way? Maybe compile locally (Gulp/Grunt?) before deploying to cloud?
I've not done it with Less, but with SASS I've compiled locally with gulp and then pushed the compiled source up to the cloud.
The packages might just say they don't working with Cloud because no one has tested them and reported back. The "Project Compatibility" element on the packages page is predominantly based on user feedback as far as I know. It could be worth giving one a go and seeing if it does work.
Richard, Look at ClientDependency by Shannon Deminick (Umbraco Core Maintainer). I use it to minify static files on my sites, and his library support LESS.
https://github.com/Shazwazza/ClientDependency
using LESS with Umbraco Cloud
Does anyone know the best way of using LESS CSS Preprocessor with Umbraco Cloud?
I can see a couple of LESS packages in the package repository, but none of them look like they work past 7.4. And I'm guessing non standard file types will be at the mercy of the Umbraco Cloud deploy anyway?
If there's no way that the cloud can compile the LESS to css, is there another way? Maybe compile locally (Gulp/Grunt?) before deploying to cloud?
Thanks
Rich
Hi Richard,
I've not done it with Less, but with SASS I've compiled locally with gulp and then pushed the compiled source up to the cloud.
The packages might just say they don't working with Cloud because no one has tested them and reported back. The "Project Compatibility" element on the packages page is predominantly based on user feedback as far as I know. It could be worth giving one a go and seeing if it does work.
Thanks,
Nik
I'll give the 2 LESS packages a go and report back.
Thanks!
I found a simple solution - I downloaded the "web compiler" VS extension by Mads Kristiansen.
Added a less file. When I change the less file and save, it generates the css which I just include in the project.
Richard, Look at ClientDependency by Shannon Deminick (Umbraco Core Maintainer). I use it to minify static files on my sites, and his library support LESS. https://github.com/Shazwazza/ClientDependency
is working on a reply...