|
Has anyone gotten the DotLess module in the gallery to work with the Bootstrap theme .less files? I've been trying to set it up for hours, but I couldn't find any documentation on using the DotLess module.
I have set the bootstrap theme to active and enabled the dotless module.
I uncommented the Style.Include statement in the Layout:
Style.Include("less/bootstrapless.less"); // LESS implementation *Requires DOTLESS module
I copied the web.config from the DotLess module to both my Styles folder and the Styles/less folder. What else am I missing?
Here is the web.config I'm using:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler, dotless.Core" />
</configSections>
<dotless minifyCss="true" cache="false" />
<appSettings>
<add key="webpages:Enabled" value="false" />
</appSettings>
<system.web>
<httpHandlers>
<!-- iis6 - for any request in this location, return via managed static file handler -->
<add
path="*.less"
verb="*"
type="dotless.Core.LessCssHttpHandler,dotless.Core"/>
<add
path="*"
verb="*"
type="System.Web.StaticFileHandler" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers accessPolicy="Script,Read">
<!--
iis7 - for any request to a file exists on disk, return it via native http module.
accessPolicy 'Script' is to allow for a managed 404 page.
-->
<add
name="Less"
type="dotless.Core.LessCssHttpHandler,dotless.Core"
path="*.less"
verb="*" />
<add
name="StaticFile"
path="*"
verb="*"
modules="StaticFileModule"
preCondition="integratedMode"
resourceType="File"
requireAccess="Read" />
</handlers>
</system.webServer>
</configuration>
|