Running `./gradlew jsBrowserDevelopmentRun -t` al...
# javascript
p
Running
./gradlew jsBrowserDevelopmentRun -t
always refreshes my browser page twice. On save on on compile. Is it possible to configure some debounce here?
c
Not as far as I know. My plugin for Vite doesn't have the problem.
t
I would expect that’s because it’s watching both source files and compiler output. You can configure webpack like so: https://kotlinlang.org/docs/js-project-setup.html#webpack-configuration-file And the relevant options for webpack would probably be
watchOptions.aggregateTimeout
and
watchOptions.ignored
https://webpack.js.org/configuration/watch/#watchoptionsaggregatetimeout Have fun experimenting 😉
thank you color 1