LegacyImporterThis
階層
- LegacyPluginThis
- LegacyImporterThis
インデックス
プロパティ
プロパティ
fromImport
fromImport : boolean
- Dart Sass
- 1.33.0以降
- Node Sass
- ✗
互換性
インポーターが、@use
または @forward
規則ではなく、Sass @import
規則のために呼び出されているかどうか。
これは、インポートのみのファイルを読み込むかどうかを判断する場合にのみ使用する必要があります。
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 : stringWindows では
";"
で、他のオペレーティングシステムでは":"
で区切られた includePaths に渡された値。これには、常に現在の作業ディレクトリが最初のエントリとして含まれます。 -
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 関数のコンテキストにおける
this
の値。非推奨
これはレガシーの render および renderSync API でのみ使用されます。compile、compileString、compileAsync、および compileStringAsync で Importer を代わりに使用してください。