Webpack watch in Ktor/Js project

I have project with JVM server and JS client and I use gradle to build it. I noticed that webpack is being used for compiling JS. How can I use webpack watch mod for automatically rebuilding only front-end (React)of my project?

You can try continuous mode.

I don’t understand where should I add continues arg. I don’t use this run process from your link. I have my own run which depends on jsBrowserProductionWebpack.

jvmJar {

task run1(type: JavaExec, dependsOn: [jvmJar]) {


this is how my gradle menu looks, there is no run in other

Can you check ./gradlew run1 --continuous in your terminal? If it doesn’t help can you please attach a link to your project?