You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spfx/web-parts/get-started/deploy-web-part-to-cdn.md
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Deploy your SharePoint client-side web part to Azure CDN
3
3
description: Create a new sample web part and deploy its assets to an Azure CDN instead of using the default Office 365 CDN as the hosting solution.
4
-
ms.date: 01/08/2018
4
+
ms.date: 08/20/2018
5
5
ms.prod: sharepoint
6
6
---
7
7
@@ -17,6 +17,9 @@ Create a new sample web part and deploy its assets to an Azure Content Delivery
17
17
18
18
To configure an Azure storage account and integrate it with the CDN, follow the instructions at [Integrate an Azure storage account with Azure CDN](https://docs.microsoft.com/en-us/azure/cdn/cdn-create-a-storage-account-with-cdn), along with the detailed steps in this article.
19
19
20
+
> [!NOTE]
21
+
> As Azure UIs are evolving fast, some of the pictures and steps might be out of date, but high level process is still valid.
22
+
20
23
### Storage account name
21
24
22
25
This is the name you used to create your storage account, as described in [Step 1: Create a storage account](https://docs.microsoft.com/en-us/azure/cdn/cdn-create-a-storage-account-with-cdn#step-1-create-a-storage-account).
@@ -105,13 +108,7 @@ Note, however, that you have not yet deployed the files.
105
108
106
109
At this point, Yeoman scaffolds the solution files and installs the required dependencies. This might take a few minutes. Yeoman scaffolds the project to include your custom web part as well.
107
110
108
-
6. After the scaffolding completes, lock down the version of the project dependencies by running the following command:
109
-
110
-
```sh
111
-
npm shrinkwrap
112
-
```
113
-
114
-
7. Enter the following to open the web part project in Visual Studio Code:
111
+
6. Enter the following to open the web part project in Visual Studio Code:
115
112
116
113
```
117
114
code .
@@ -123,11 +120,11 @@ Note, however, that you have not yet deployed the files.
123
120
124
121
This is where we control the solution packaging.
125
122
126
-
2. Update `includeClientSideAssets` value as **false** so that client-side assets are NOT packaged inside of the sppkg file, which is the default behavior. Because we are hosting assets from an external CDN, we do not want them to be included in the solution package. Your configuration should look somewhat like the following.
123
+
2. Update `includeClientSideAssets` value as **false** so that client-side assets are NOT packaged inside of the sppkg file, which is the default behavior. As we are hosting assets from an external CDN, we do not want them to be included in the solution package. Your configuration should look somewhat like the following.
As long as you are updating the **cdnBasePath** accordingly, your files are being properly loaded.
291
288
292
289
> [!NOTE]
293
-
> If you find an issue in the documentation or in the SharePoint Framework, report that to SharePoint engineering by using the [issue list at the sp-dev-docs repository](https://github.com/SharePoint/sp-dev-docs/issues). Thanks for your input in advance.
290
+
> If you find an issue in the documentation or in the SharePoint Framework, please report that to SharePoint engineering by using the [issue list at the sp-dev-docs repository](https://github.com/SharePoint/sp-dev-docs/issues) or by adding a comment to this article. Thanks for your input in advance.
Copy file name to clipboardExpand all lines: docs/spfx/web-parts/get-started/provision-sp-assets-from-package.md
+7-13Lines changed: 7 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Provision SharePoint assets from your SharePoint client-side web part
3
3
description: SharePoint assets can be provisioned as part of the SharePoint Framework solution, and are deployed to SharePoint sites when the solution is installed on it.
4
-
ms.date: 01/08/2018
4
+
ms.date: 08/20/2018
5
5
ms.prod: sharepoint
6
6
---
7
7
@@ -61,13 +61,7 @@ You can also follow these steps by watching this video on the SharePoint PnP You
61
61
62
62
At this point, Yeoman installs the required dependencies and scaffolds the solution files. This might take a few minutes. Yeoman scaffolds the project to include your **AssetDeployment** web part as well.
63
63
64
-
6. After the scaffolding completes, lock down the version of the project dependencies by running the following command:
65
-
66
-
```sh
67
-
npm shrinkwrap
68
-
```
69
-
70
-
7. Next, enter the following to open the web part project in Visual Studio Code:
64
+
6. Next, enter the following to open the web part project in Visual Studio Code:
71
65
72
66
```
73
67
code .
@@ -159,7 +153,7 @@ In the following steps, we define the needed structure to be provisioned.
159
153
* Definitions use standard Feature Framework schema, which is well known to SharePoint developers.
160
154
* Custom fields are being referenced in the introduced content type.
161
155
* We use the **CustomSchema** attribute in the **ListInstance** element to define a provisioning time schema.xml file for the list. This way the list is still based on the out-of-the-box list template (normal custom list '100' in this case), but we can define an alternative provisioning definition during initial provisioning.
162
-
* When provisioning list instances using Features you must provide the ID of the Feature associated with the particular list definition. Using the FeatureId attribute you are supposed to provide the ID of the Feature which contains the List Definition. As an example: if you’re provisioning an instance of a custom list the FeatureId attribute should be set to {00bfea71-de22-43b2-a848-c05709900100}.
156
+
* When provisioning list instances using Features you must provide the ID of the Feature associated with the particular list definition. Using the FeatureId attribute you are supposed to provide the ID of the Feature which contains the List Definition. As an example: if you’re provisioning an instance of a custom list the FeatureId attribute should be set to `{00bfea71-de22-43b2-a848-c05709900100}`.
163
157
164
158
More details about the used schema structures can be found at [Using Features in SharePoint Foundation](https://msdn.microsoft.com/en-us/library/office/ms460318(v=office.14).aspx) on MSDN.
165
159
@@ -221,7 +215,7 @@ Now we have created the needed structures for provisioning SharePoint assets aut
@@ -476,7 +470,7 @@ Now that the package has been updated in the app catalog, we can move to the act
476
470

477
471
478
472
> [!NOTE]
479
-
> Because the SharePoint Framework uses the same app infrastructure as SharePoint Add-ins, the status for the upgrade indicates that the update can happen for an add-in or an app.
473
+
> Because the SharePoint Framework uses the same app infrastructure as SharePoint Add-ins, the status for the upgrade indicates that the update can happen for an add-in or an app.
480
474
481
475
The update can take a while, but when the solution status changes to normal again, you can select **F5** to refresh the site contents page to confirm that a new list called *New List* has been successfully provisioned as part of the update process.
482
476
@@ -485,7 +479,7 @@ Now that the package has been updated in the app catalog, we can move to the act
485
479
Now we have successfully upgraded this instance to the latest version. This Feature Framework option for SharePoint asset provisioning is pretty much the same as it is for the SharePoint Add-in model. The key difference is that the assets are being provisioned directly to a normal SharePoint site, because there's no concept called app or add-in web with SharePoint Framework solutions.
486
480
487
481
> [!NOTE]
488
-
> If you find an issue in the documentation or in the SharePoint Framework, report that to SharePoint engineering by using the [issue list at the sp-dev-docs repository](https://github.com/SharePoint/sp-dev-docs/issues). Thanks for your input in advance.
482
+
> If you find an issue in the documentation or in the SharePoint Framework, please report that to SharePoint engineering by using the [issue list at the sp-dev-docs repository](https://github.com/SharePoint/sp-dev-docs/issues) or by adding a comment to this article. Thanks for your input in advance.
0 commit comments