release: WRNexusJS 0.4.0
This commit is contained in:
@@ -22,6 +22,12 @@ export type Mode = "development" | "production";
|
||||
export interface StyleProcessContext {
|
||||
/** Resolved absolute path to the CSS entry, or null if there is none. */
|
||||
entryPath: string | null;
|
||||
/** Original application entry when a package-aware wrapper was generated. */
|
||||
originalEntryPath?: string | null;
|
||||
/** Package component/style directories that processors should scan. */
|
||||
sources?: string[];
|
||||
/** Package-owned CSS entries automatically imported into the application bundle. */
|
||||
entries?: string[];
|
||||
appDir: string;
|
||||
appRoot: string;
|
||||
mode: Mode;
|
||||
@@ -36,6 +42,10 @@ export interface StylesConfig {
|
||||
* used (which already resolves `@import`, including from node_modules).
|
||||
*/
|
||||
process?: (ctx: StyleProcessContext) => string | Promise<string>;
|
||||
/** Automatically append package scan sources to custom processor input. Default true. */
|
||||
includePackageSources?: boolean;
|
||||
/** Production defaults to throw; development defaults to best-effort fallback. */
|
||||
failureMode?: "throw" | "fallback";
|
||||
}
|
||||
|
||||
export interface MobileConfig {
|
||||
|
||||
Reference in New Issue
Block a user