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

140
Vistas
Bundling all relevant JS and CSS files

In my very old legacy project I want to make use of npm to update the JS-libraries automatically.

Using a package.json like:

{
  "name": "whoCares",
  "version": "0.0.1",
  "license": "MIT",
  "dependencies": {
    "chosen-jquery": "0.1.1",
    "ol": "6.9.0",
    "toastr": "2.1.4"
  }
}

I can fire the npm install to fill node_modules with stuff.

Now I need to create 2 bundle files for JS and CSS resources, by picking only the minified versions of the libraries with all possible dependencies included. I want only the production-relevant parts of libraries to be in, so all docs, examples, tests etc must be excluded.

Is there a simple way to achieve that out-of-box?

about 4 years ago · Juan Pablo Isaza
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