diff --git a/src/main/groovy/us/ascendtech/js/npm/NpmPlugin.groovy b/src/main/groovy/us/ascendtech/js/npm/NpmPlugin.groovy index 287ff71..efb7dd3 100644 --- a/src/main/groovy/us/ascendtech/js/npm/NpmPlugin.groovy +++ b/src/main/groovy/us/ascendtech/js/npm/NpmPlugin.groovy @@ -124,9 +124,9 @@ class NpmPlugin implements Plugin { baseArgs.addAll("serve", "--mode=development", "--content-base", "${npm.contentBase}") } - project.tasks.create(name: "webpack4Dev", type: NpmTask, dependsOn: ["npmInstallDep", "npmInstall"]) { - baseCmd.set("webpack-dev-server") - baseArgs.addAll("--mode=development", "--content-base", "${npm.contentBase}") + project.tasks.create(name: "webpack5WDS4Dev", type: NpmTask, dependsOn: ["npmInstallDep", "npmInstall"]) { + baseCmd.set("webpack") + baseArgs.addAll("serve", "--mode=development") } project.configurations.create("npm")