Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

160
Vistas
Is there a way to minify all my js/css files while rendering to the browser but not while editing it in the IDE?

My js file has a lot of comments and spaces which increases its size and slows down the website. So I am looking for a way to minify all that when I start the server but I should be able to edit it with my original file. Basically the browser sees the minified version when we 'view page source' but I should be able to see the commented version in my IDE. Is there any npm package or any way we can do that?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This is usually done with a build tool such as parcel or webpack (there are many others).

Parcel is maybe the simplest to setup, because the most important features - including minifying - are built in, or are configured automatically, however it may depend on how you have organized your project. In the best case you just need to install it

npm install --save-dev parcel

and then you can create a production build with

parcel build index.html

(if index.html is your main file).

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda