d@ng’s WORLD
1. Download dotless.dll and include it reference to your project.
2. Edit file Web.config (add what you need at the same position)
<?xml version="1.0"?> <configuration> <configSections> <section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler,dotless.Core"/> </configSections> <dotless minifyCss="true" cache="false"/> <!-- for IIS 6 --> <system.web> <httpHandlers> <add type="dotless.Core.LessCssHttpHandler,dotless.Core" validate="false" path="*.LESS" verb="*"/> </httpHandlers> </system.web> <!-- for IIS 7 --> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <handlers> <add name="LessHttpHandler" type="dotless.Core.LessCssHttpHandler,dotless.Core" path="*.less" verb="*"/> </handlers> </system.webServer> </configuration>
3. Browse to your .less file in the web browser to view result.
-
huynhminhdang posted this