jantimon/html-webpack-plugin

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

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

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.