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

143
Vistas
How to add dynamic or changable files as assets in pkg nodejs

I have added folders as assets to pkg for creating exe file. The jsonfiles folder contains json files and I want to change the values of these json files and when changed should reflect in frontend. The jsonfiles folder always displays the value which was present during compilation, I want to make these assets dynamic(i.e,json file changes should reflect on frontend)

"pkg": {
    "assets":  [  "public/**/*", "jsonfiles/**/*" ],
    "targets": ["node14-win-x64" ]
  },

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

0

Instead of adding the dynamic files as assets, I added the files which are changing in a separate folder and made requests to those file for the data. Once the assets are converted to .exe file it is not changeable only required data we need can be got from other folders and displayed.

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