From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Run our SPFx web part
From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions
Run our SPFx web part
- [Instructor] Now that we have generated a SharePoint Framework solution project with a single web part in it, it is time to see how to run this. Now you see there's a file here called gulpfile.js. And it is referencing a number of tasks that come out of node packages that Microsoft has written. Well, they have chosen gulp to be their task runner. So we can use various gulp concepts there to see what tasks they support. How do you find out what tasks they support? You just type gulp --tasks. And by running this command, it writes out the various tasks that this project supports. You can add to this list, certainly. I think in more complicated projects, you'll probably end up adding to this list. The tasks that we are interested in is gulp serve but when I run gulp serve, it'll fire open the local workbench and you know everything would want to work over https and you know that if the SSL cert is not trusted by the browser, the browser won't load the files. So the first thing you need…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
An introduction to the dev environment3m 33s
-
(Locked)
Create an SPFx web part4m 46s
-
(Locked)
A walk-through of an SPFx solution5m 24s
-
(Locked)
A walk-through of the SPFx web part5m 7s
-
(Locked)
Run our SPFx web part3m 29s
-
(Locked)
Debug SPFx web parts in Visual Studio Code4m 26s
-
(Locked)
Debug SPFx solutions in the browser2m 16s
-
(Locked)
Debug SPFx solutions in the hosted workbench in Office3652m 22s
-
-
-
-
-
-
-