From 552a88f99388a59fb99cfbc24932db8fb8d33e6e Mon Sep 17 00:00:00 2001 From: shulaoda Date: Tue, 10 Sep 2024 09:49:56 +0800 Subject: [PATCH] chore: update api.md --- packages/rspack/etc/api.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/rspack/etc/api.md b/packages/rspack/etc/api.md index a73d8eec833..51ee7a0da6a 100644 --- a/packages/rspack/etc/api.md +++ b/packages/rspack/etc/api.md @@ -4626,14 +4626,14 @@ export const HtmlRspackPlugin: { publicPath?: string | undefined; hash?: boolean | undefined; chunks?: string[] | undefined; - template?: string | undefined; - templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; - templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; - inject?: boolean | "head" | "body" | undefined; base?: string | { target?: "_self" | "_blank" | "_parent" | "_top" | undefined; href?: string | undefined; } | undefined; + template?: string | undefined; + templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; + templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; + inject?: boolean | "head" | "body" | undefined; scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; excludeChunks?: string[] | undefined; sri?: "sha256" | "sha384" | "sha512" | undefined; @@ -4648,14 +4648,14 @@ export const HtmlRspackPlugin: { publicPath?: string | undefined; hash?: boolean | undefined; chunks?: string[] | undefined; - template?: string | undefined; - templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; - templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; - inject?: boolean | "head" | "body" | undefined; base?: string | { target?: "_self" | "_blank" | "_parent" | "_top" | undefined; href?: string | undefined; } | undefined; + template?: string | undefined; + templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; + templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; + inject?: boolean | "head" | "body" | undefined; scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; excludeChunks?: string[] | undefined; sri?: "sha256" | "sha384" | "sha512" | undefined; @@ -4729,14 +4729,14 @@ const htmlRspackPluginOptions: z.ZodObject<{ publicPath?: string | undefined; hash?: boolean | undefined; chunks?: string[] | undefined; - template?: string | undefined; - templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; - templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; - inject?: boolean | "head" | "body" | undefined; base?: string | { target?: "_self" | "_blank" | "_parent" | "_top" | undefined; href?: string | undefined; } | undefined; + template?: string | undefined; + templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; + templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; + inject?: boolean | "head" | "body" | undefined; scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; excludeChunks?: string[] | undefined; sri?: "sha256" | "sha384" | "sha512" | undefined; @@ -4749,14 +4749,14 @@ const htmlRspackPluginOptions: z.ZodObject<{ publicPath?: string | undefined; hash?: boolean | undefined; chunks?: string[] | undefined; - template?: string | undefined; - templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; - templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; - inject?: boolean | "head" | "body" | undefined; base?: string | { target?: "_self" | "_blank" | "_parent" | "_top" | undefined; href?: string | undefined; } | undefined; + template?: string | undefined; + templateContent?: string | ((args_0: Record, ...args_1: unknown[]) => string | Promise) | undefined; + templateParameters?: boolean | Record | ((args_0: Record, ...args_1: unknown[]) => Record | Promise>) | undefined; + inject?: boolean | "head" | "body" | undefined; scriptLoading?: "module" | "blocking" | "defer" | "systemjs-module" | undefined; excludeChunks?: string[] | undefined; sri?: "sha256" | "sha384" | "sha512" | undefined;