LinbuduLab / esbuild-plugins

ESBuild plugins by @LinbuduLab
MIT License
113 stars 18 forks source link

[esbuild-plugin-copy] Copy only if file has changed #85

Closed mkahvi closed 1 year ago

mkahvi commented 2 years ago

The copying should happen only if a file has changed. This would make the plugin behave much better with watch enabled in esbuild.

Even simple comparison of last modify date would do it in most cases.

Would be made better if it cached the stat calls for the target files.

linbudu599 commented 1 year ago

Duplicate with #98 and should got fixed this weekend.