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.
Use includeClientSideAssets
From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions
Use includeClientSideAssets
- [Instructor] SharePoint Framework also comes with a very interesting capability newly introduced in SharePoint Framework 1.4, that as long as your package solution contains line number seven here, includeClientsideAssets true, and you have an Office 365 telency enabled, it will bundle all the necessary files for you. It takes the step of manually having to copy over the files away from you. Let's see how that works. Go to your write-manifests.json and ensure that your cdnBasePath value looks like this, the default value of a comment that says PATH TO CDN. Second, go to your package-solution.json and just make sure that you have this includeClientSideAssests value set to true. Now, you go back into terminal and just like before, we run gulp clean, gulp --ship which will bundle up the necessary files for me, and gulp package-solution --ship which will create the SPPKG file for me. Great. As before, I'm going to go to the SharePoint solution folder, find this SPPKG file, I'm going to…
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
-
-
-
-
Deploying SPFx solutions: Basics3m 46s
-
(Locked)
Office 365 CDN: Basics3m 42s
-
(Locked)
Manage Office 365 CDN using PowerShell5m 29s
-
(Locked)
Manage Office 365 CDN using Office 365 CLI5m 2s
-
(Locked)
Test the Office 365 CDN4m 2s
-
(Locked)
Deploy the SPFx solution8m 54s
-
(Locked)
Uninstall an SPFx solution2m 45s
-
(Locked)
Use includeClientSideAssets5m 3s
-
-
-
-
-
-