Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api-javascript): update transformIndexHtml types #603

Merged
merged 10 commits into from
Feb 8, 2024
3 changes: 3 additions & 0 deletions docs/config/shared-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ Si se configura esta opción, los preprocesadores CSS se ejecutarán en los work

## css.devSourcemap

- **Experimental** [Hacer Comentarios](https://github.com/vitejs/vite/discussions/13845)
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
- **Experimental** [Hacer comentarios](https://github.com/vitejs/vite/discussions/13845)
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
- **Tipo:** `boolean`
- **Por defecto:** `false`
Expand All @@ -272,6 +273,8 @@ Habilita los mapas de origen durante el desarrollo.
## css.transformer

- **Experimental** [Hacer Comentarios](https://github.com/vitejs/vite/discussions/13835)
- **Type:** `'postcss' | 'lightningcss'`
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
- **Default:** `'postcss'`
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
- **Tipo:** `'postcss' | 'lightningcss'`
- **Por defecto:** `'postcss'`

Expand Down
6 changes: 5 additions & 1 deletion docs/guide/api-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ interface ViteDevServer {
/**
* Aplica las transformaciones HTML integradas en Vite y las transformaciones HTML de cualquier plugin.
*/
transformIndexHtml(url: string, html: string): Promise<string>
transformIndexHtml(
url: string,
html: string,
originalUrl?: string,
): Promise<string>
/**
* Carga una URL dada como un módulo instanciado para SSR.
*/
Expand Down