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

127
Views
Wepback --watch sees the change but doesn't recompile output file

I am using npx webpack --watch. When I first run it, it shows many messages with sufix:

[built] [code generated]

Then when I do a change in Data.js file it shows:

[...]
./src/swagger/data.js 3.55 KiB [built] [code generated]
[...]

Until now everything is going as expected. Webpack detected change, recompiled files and put them in the /dist directory.

When I do second change to the Data.js file however, it shows that webpack compiled successfully but it doesn't show [code generated] message and it won't work until I restart npx webpack --watch. Code in /dist directory contains old data.

Basically now it's stuck in a state in which it detects changes but doesn't recompile changed files. Any idea how to force it to recompile this?

I tried adding this to my webpack config but it acts just the same

watchOptions: {
  aggregateTimeout: 600,
  ignored: /node_modules/,
},
about 4 years ago · Juan Pablo Isaza
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!