LegacyPluginThis
階層
- LegacyPluginThis
インデックス
プロパティ
プロパティ
options
options: {
context: LegacyPluginThis;
data?: string;
file?: string;
includePaths: string;
indentType: 0 | 1;
indentWidth: number;
linefeed: "\r" | "\r\n" | "\n" | "\n\r";
precision: 10;
result: {
stats: {
entry: string;
start: number;
};
};
style: 1;
}
context: LegacyPluginThis;
data?: string;
file?: string;
includePaths: string;
indentType: 0 | 1;
indentWidth: number;
linefeed: "\r" | "\r\n" | "\n" | "\n\r";
precision: 10;
result: {
stats: {
entry: string;
start: number;
};
};
style: 1;
}
render または renderSync に渡されたオプションの部分的な表現。
型宣言
-
context: LegacyPluginThis
このオブジェクトを含む同じ LegacyPluginThis インスタンス。
-
オプション
data?: stringdata に渡された値。
-
オプション
file?: string -
include
Paths : stringincludePaths に渡された値を、Windows では
";"
、その他のオペレーティングシステムでは":"
で区切ったもの。これは常に、現在の作業ディレクトリを最初の項目として含みます。 -
indent
Type : 0 | 1indentType が
"tab"
の場合は 1、それ以外の場合は 0。 -
indent
Width : numberindentWidth に渡された値。それ以外の場合は
2
。 -
linefeed: "\r" | "\r\n" | "\n" | "\n\r"
linefeed に渡された値。それ以外の場合は
"\n"
。 -
precision: 10
常に数値 10。
-
result: {
stats: {
entry: string;
start: number;
};
}部分的に構築された LegacyResult オブジェクト。
-
stats: {
entry: string;
start: number;
}進行中のコンパイルに関する部分的な情報。
-
entry: string
file が渡された場合はその値、それ以外の場合は文字列
"data"
。 -
start: number
1970 年 1 月 1 日 00:00:00 UTC から Sass コンパイルが開始された時刻までのミリ秒数。
-
-
-
style: 1
常に数値 1。
LegacyImporter または LegacyFunction コールバックのコンテキストにおける
this
の値。非推奨
これはレガシー render および renderSync API のみで使用されます。compile、compileString、compileAsync、および compileStringAsync を代わりに使用してください。