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

271
Vistas
How can I query my DB from a simple Javascript code?

I want to generate automatically a sitemap.xml file. For this, in my npm command, I want to call "node config/sitemap.js" before calling webpack for generating my front-end bundle.

However, if I do import mongoose or require mongoose whatsoever, node will complain it does not find the module. Does that mean I need to have another webpack configuration just for the sitemap generator? What should be the minimum in order to be able to query a DB and generate a file?

Is this the way to go? Or do you have any other way to achieve what I want?

Thank you in advance and regards

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