Skip to content

Commit

Permalink
add webpack 5, webdev server 4 task
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis95 committed Nov 4, 2021
1 parent b10e3e9 commit faa1bc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/groovy/us/ascendtech/js/npm/NpmPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ class NpmPlugin implements Plugin<Project> {
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")
Expand Down

0 comments on commit faa1bc8

Please sign in to comment.