Browse Source

update web examples to workaround a bug when using `jsRun` (#1166)

see https://youtrack.jetbrains.com/issue/KT-48273

Co-authored-by: Oleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
igushkin/publishing-experiments
Oleksandr Karpovich 3 years ago committed by GitHub
parent
commit
3eda879730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/falling-balls-web/build.gradle.kts
  2. 2
      examples/todoapp/web/build.gradle.kts
  3. 2
      examples/web-compose-bird/build.gradle.kts
  4. 2
      examples/web-landing/build.gradle.kts
  5. 2
      examples/web-with-react/build.gradle.kts

2
examples/falling-balls-web/build.gradle.kts

@ -77,7 +77,7 @@ compose.desktop {
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 // a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273
afterEvaluate { afterEvaluate {
extensions.configure<NodeJsRootExtension> { rootProject.extensions.configure<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0" versions.webpackDevServer.version = "4.0.0"
} }
} }

2
examples/todoapp/web/build.gradle.kts

@ -36,7 +36,7 @@ kotlin {
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 // a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273
afterEvaluate { afterEvaluate {
extensions.configure<NodeJsRootExtension> { rootProject.extensions.configure<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0" versions.webpackDevServer.version = "4.0.0"
} }
} }

2
examples/web-compose-bird/build.gradle.kts

@ -31,7 +31,7 @@ kotlin {
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 // a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273
afterEvaluate { afterEvaluate {
extensions.configure<NodeJsRootExtension> { rootProject.extensions.configure<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0" versions.webpackDevServer.version = "4.0.0"
} }
} }

2
examples/web-landing/build.gradle.kts

@ -30,7 +30,7 @@ kotlin {
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 // a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273
afterEvaluate { afterEvaluate {
extensions.configure<NodeJsRootExtension> { rootProject.extensions.configure<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0" versions.webpackDevServer.version = "4.0.0"
} }
} }

2
examples/web-with-react/build.gradle.kts

@ -34,7 +34,7 @@ kotlin {
// a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273 // a temporary workaround for a bug in jsRun invocation - see https://youtrack.jetbrains.com/issue/KT-48273
afterEvaluate { afterEvaluate {
extensions.configure<NodeJsRootExtension> { rootProject.extensions.configure<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0" versions.webpackDevServer.version = "4.0.0"
} }
} }

Loading…
Cancel
Save