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

Use includeClientSideAssets

From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions

Start my 1-month free trial

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…

Contents