0
.less
ファイルを実行時にコンパイルしようとしています。しかしdotless
ライブラリでは@import file.less
ファイルが見つかりません。.reslessで終わるファイルが見つかりません。
私のすべてのファイルは、メインlessファイルと同じディレクトリにあります。
これは私のC#のコードです:
var config = new DotlessConfiguration() {
MinifyOutput = true,
ImportAllFilesAsLess = true
};
string css = Less.Parse(less,config);
私が変換しようとしています主な以下のファイル:
@import "font-awesome.less";
@fa-font-path: "/fonts";
@sco_green: #63b02e;
@sco_orange: #f18500;
@blue-deep:#00a2d1;
@white: #ffffff;
@active: #ffcb8b;
@gray: #999;
@gray-dark: #525252;
@gray-middle: #b8bcba;
@gray-light: #dbdbdb;
@gray-lighter: #efefef;
@gray-super-light: #f7f7f7;
@gray20:#333;
@gray94:#F0F0F0;
のWeb設定:
<configSections>
<section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler, dotless.Core" />
</configSections>
<system.web>
<httpHandlers>
<add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" />
</httpHandlers>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="dotless" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" resourceType="File" preCondition="" />
</handlers>
</system.webServer>
<dotless minifyCss="true" cache="true" web="false" disableParameters="true" />
エラーメッセージ:
どうすれば動作させることができますか?
それ以外の場合は、実際のコードを推測してください。 – Valkyrie
.lessファイルの内容を追加しました。その他のコードは何を提供すべきですか? – JustLearning