From the course: SharePoint Framework for Developers: 3 Deployment, Upgrades, and Lifecycle

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Demonstrate automatic client-side asset deployment

Demonstrate automatic client-side asset deployment

From the course: SharePoint Framework for Developers: 3 Deployment, Upgrades, and Lifecycle

Start my 1-month free trial

Demonstrate automatic client-side asset deployment

- [Instructor] Now we just went through the process of being able to leverage a CDN. In this case, the URL happened to be the same as the public CDN, but the steps are the same no matter what CDN you use. But the important distinction is that I control the URL of the CDN network, and I had to specify that in my CDN base path. While that gives me more control, it also means that I have to go through a number of steps. I had to go and upload files in the CDNDocs document library, my CDN endpoint. If I forgot to do that, or if I uploaded the wrong file, it just wouldn't work. There is an easier way. And that's called as automatic client-side assets deploying. So let's go into write-manifest.json and revert the cdnBasePath back to this common path to CDN. This is the default value. Also, go to package-solution.json, and verify that you have includeClientSideAssets set to true. This is the default value too. This is preferable because this just makes things a whole lot easier. So if you…

Contents