Skip to content

Commit 6014194

Browse files
committed
refactor: changed a webpack target to js:node
1 parent 508c4fc commit 6014194

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apps/cart/project.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,23 @@
7171
"defaultConfiguration": "production"
7272
},
7373
"serve": {
74-
"executor": "@nx/webpack:dev-server",
74+
"executor": "@nx/js:node",
75+
"dependsOn": ["build"],
7576
"options": {
76-
"buildTarget": "cart:build"
77+
"buildTarget": "cart:build",
78+
"runBuildTargetDependencies": false
7779
},
7880
"configurations": {
7981
"production": {
8082
"buildTarget": "cart:build:production"
8183
},
8284
"development": {
8385
"buildTarget": "cart:build:development"
86+
},
87+
"repl": {
88+
"buildTargetOptions": {
89+
"main": "{projectRoot}/src/repl.ts"
90+
}
8491
}
8592
},
8693
"defaultConfiguration": "development"

0 commit comments

Comments
 (0)