我正在使用dotLess。無法讓dotLess工作
我跟着他們的指示(這似乎很簡單),它只有4個步驟:)
我最小的web.config看起來是這樣的:
<configuration>
<configSections>
<section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler,dotless.Core" />
</configSections>
<dotless minifyCss="false" cache="true" />
<system.web>
<httpHandlers>
<add type="dotless.Core.LessCssHttpHandler, dotless.Core" validate="false" path="*.LESS" verb="*" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add name="LessHttpHandler" type="dotless.Core.LessCssHttpHandler, dotless.Core" preCondition="integratedMode" path="*.less" verb="*" />
</handlers>
</system.webServer>
</configuration>
我已經添加了我的.LESS文件我的內容文件夾(我使用ASP.NET MVC - 剃刀視圖引擎)
我的佈局有一個鏈接到我的.LESS包括文件:
<link rel="stylesheet/css" type="text/css" href="@Url.Content("~/Content/Site.less")" />
我也在我的web應用程序添加的一個參考dotless.Core.dll
然而,儘管所有的當我這樣做,頁面主體底色爲黑色的簡約的造型,沒有任何反應,由於某種原因,它不是踢進去。
我在這裏錯過了什麼嗎?
關於標籤:他正在使用的有一點點不同的語法比的WebForms的<% %>視圖引擎的Razor視圖引擎。 –