Skip to content

Commit 22e6d58

Browse files
luismanezVesaJuvonen
authored andcommitted
Update integrate-gulp-tasks-in-build-pipeline.md (SharePoint#611)
According to the description on the SPBuildRig.d.ts, the addBuildTasks is deprecated, and internally is doing the same that "addPostTypescriptTask".
1 parent ab8c58d commit 22e6d58

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/spfx/toolchain/integrate-gulp-tasks-in-build-pipeline.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,14 @@ You can also add this custom task to be executed before or after certain availab
7979
The SharePoint Framework tasks are available in the default build rig. The build rig is a collection of tasks defined for a specific purpose. In our case, building client-side packages. You can access this default rig using the `build.rig` object and get access to the pre and post task functions:
8080

8181
```js
82+
//execute before the typescript subtask
83+
build.rig.addPreBuildTask(helloWorldTask);
84+
8285
// execute after TypeScript task
8386
build.rig.addPostTypescriptTask(helloWorldTask);
8487

85-
//execute before TypeScript task
86-
build.rig.addBuildTasks(helloWorldTask);
87-
8888
//execute after all tasks
8989
build.rig.addPostBuildTask(helloWorldTask);
90-
91-
//execute before all tasks
92-
build.rig.addPreBuildTask(helloWorldTask);
9390
```
9491

9592
## Example: Custom image resize task

0 commit comments

Comments
 (0)