Skip to content

Instantly share code, notes, and snippets.

View Trewqa's full-sized avatar
🖥️
¡Desarrollando!

Roberto C. Trewqa

🖥️
¡Desarrollando!
View GitHub Profile
@Trewqa
Trewqa / disable_sourcemaps_vite_es.md
Last active May 7, 2024 08:17
Deshabilitar Sourcemaps en Vite DEV Server

Read this gist in English by clicking here.

Deshabilitar Sourcemaps en Vite DEV Server (para proyectos como Astro)

Al desarrollar aplicaciones con herramientas que usan Vite, como Astro, puede ser útil deshabilitar los sourcemaps para mejorar el rendimiento del servidor de desarrollo. Esto es especialmente relevante cuando los sourcemaps son muy grandes y ralentizan el proceso de debugging.

Pasos para deshabilitar sourcemaps

  1. Localizar la carpeta de Vite:
    • Navega a la carpeta de Vite en tu proyecto, que generalmente se encuentra en node_modules/vite/.
@Trewqa
Trewqa / disable_sourcemaps_vite_en.md
Last active May 7, 2024 08:17
Disable Sourcemaps in Vite DEV Server

Lee este gist en Español pulsando aquí.

Disable Sourcemaps in Vite DEV Server (for projects like Astro)

When developing applications using tools like Vite, such as Astro, it can be helpful to disable sourcemaps to improve the performance of the development server. This is especially relevant when sourcemaps are very large and slow down the debugging process.

Steps to Disable Sourcemaps

  1. Locate the Vite folder:
    • Navigate to the Vite folder in your project, which is typically located at node_modules/vite/.