Skip recreation of index.html if it doesn't changed
polRk opened this issue ยท 5 comments
polRk commented
Current behaviour ๐ฃ
restarting nodemon at each index.html updates, but the content does not change.
Expected behaviour โ๏ธ
do not recreate file if content is not changed
Reproduction Example ๐พ
https://github.com/polRk/wds-proxy-bug
Environment ๐ฅ
Node.js v12.18.4
darwin 20.6.0
7.21.1
@wds-proxy-bug/root@1.0.0 /Users/polrk/Developer/polrk/wds-proxy-bug
โโโฌ @pmmmwh/react-refresh-webpack-plugin@0.5.0-rc.5
โ โโโ webpack@5.51.1 deduped
โโโฌ babel-loader@8.2.2
โ โโโ webpack@5.51.1 deduped
โโโฌ clean-webpack-plugin@4.0.0-alpha.0
โ โโโ webpack@5.51.1 deduped
โโโฌ copy-webpack-plugin@9.0.1
โ โโโ webpack@5.51.1 deduped
โโโฌ css-minimizer-webpack-plugin@3.0.2
โ โโโ webpack@5.51.1 deduped
โโโฌ html-webpack-plugin@5.3.2
โ โโโ webpack@5.51.1 deduped
โโโฌ mini-css-extract-plugin@2.2.0
โ โโโ webpack@5.51.1 deduped
โโโฌ terser-webpack-plugin@5.1.4
โ โโโ webpack@5.51.1 deduped
โโโฌ thread-loader@3.0.4
โ โโโ webpack@5.51.1 deduped
โโโฌ webpack-cli@4.8.0
โ โโโฌ @webpack-cli/configtest@1.0.4
โ โ โโโ webpack@5.51.1 deduped
โ โโโ webpack@5.51.1 deduped
โโโฌ webpack-dev-server@4.0.0
โ โโโฌ webpack-dev-middleware@5.0.0
โ โ โโโ webpack@5.51.1 deduped
โ โโโ webpack@5.51.1 deduped
โโโ webpack@5.51.1
@wds-proxy-bug/root@1.0.0 /Users/polrk/Developer/polrk/wds-proxy-bug
โโโ html-webpack-plugin@5.3.2
polRk commented
cache: true;
- don't help
jantimon commented
this behavior was implemented on purpose as the clean-webpack-plugin removed files after each run
can you turn off file watching for your dist folder?
polRk commented
dist
folder? I don't have dist folder
alexander-akait commented
Please remove clean-webpack-plugin
and use output.clean
stale commented
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days.