Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

132
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda