Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
My umbraco site is MVC, I have Bootstrap.less files, and have put in place .dotlesscss dll and included the references to the handler in my web.config
<remove name="DotLessCss" />
<add name="DotLessCss" verb="*" path="*.less" type="dotless.Core.LessCssHttpHandler, dotless.Core" preCondition="integratedMode" />
Then in my Config folder - clientdependency.config I added:
<clientDependency version="1" fileDependencyExtensions=".js,.css,.less">
And in my view I have:
@using ClientDependency.Core.Mvc@{ Layout = null; Html.RequiresCss("/less/responsive.less"); Html.RequiresCss("~/less/bootstrap.less");}
@Html.Raw(Html.RenderJsHere())
This all works fine, when debug is off, but when it's on the clientdependency kicks in and breaks the styling.. it's like the .less files aren't compiled when going via client dependency.
Any ideas on this? Anyone got this working?
have you added the ClientDependency.Less.dll to your project?I think you can install it directly using NuGet
PM> Install-Package ClientDependency-Less
I got is working with Sass but there was an issue with the sass compiler they are using and the particular framework I wanted to use (should be fixed soon)https://github.com/Shandem/ClientDependency/issues/12
I'm pretty sure .less will work out of the box.
another alternative to try is the Optimus package, which has .less and .sass support.http://our.umbraco.org/projects/developer-tools/optimus
I'm holding out for client dependency myself.
- Tim
You my friend, are the man!
Thanks, I installed that and installed the dependency-mvc package.
I also removed ".less" from the clientdependency config, and hey presto it works!
M
haha! so glad I could help
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
.Less + Clientdependency + Bootstrap - MVC
My umbraco site is MVC, I have Bootstrap.less files, and have put in place .dotlesscss dll and included the references to the handler in my web.config
Then in my Config folder - clientdependency.config I added:
And in my view I have:
This all works fine, when debug is off, but when it's on the clientdependency kicks in and breaks the styling.. it's like the .less files aren't compiled when going via client dependency.
Any ideas on this? Anyone got this working?
have you added the ClientDependency.Less.dll to your project?
I think you can install it directly using NuGet
PM> Install-Package ClientDependency-Less
I got is working with Sass but there was an issue with the sass compiler they are using and the particular framework I wanted to use (should be fixed soon)
https://github.com/Shandem/ClientDependency/issues/12
I'm pretty sure .less will work out of the box.
another alternative to try is the Optimus package, which has .less and .sass support.
http://our.umbraco.org/projects/developer-tools/optimus
I'm holding out for client dependency myself.
- Tim
You my friend, are the man!
Thanks, I installed that and installed the dependency-mvc package.
I also removed ".less" from the clientdependency config, and hey presto it works!
M
haha! so glad I could help
- Tim
is working on a reply...