Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!