Skip to content

Commit 7232a5f

Browse files
committed
Updated getting started docs with minor tweaks
1 parent 3261ecd commit 7232a5f

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

docs/spfx/web-parts/get-started/deploy-web-part-to-cdn.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,33 @@ In this example, with the storage account created earlier, this file will look l
118118

119119
Save the file.
120120

121+
## Configuring web part to load from CDN
122+
123+
In order for the web part to load from your CDN, you will need to tell it your CDN path.
124+
125+
Switch to Visual Studio Code and open the **write-manifests.json** from the **config** folder.
126+
127+
Enter your CDN base path for the **cdnBasePath** property.
128+
129+
```json
130+
{
131+
"cdnBasePath": "<!-- PATH TO CDN -->"
132+
}
133+
```
134+
135+
In this example, with the CDN profile created earlier, this file will look like:
136+
137+
```json
138+
{
139+
"cdnBasePath": "https://spfxsamples.azureedge.net/helloworld-webpart/"
140+
}
141+
```
142+
143+
>**Note:** The CDN base path is the CDN endpoint with the BLOB container.
144+
145+
Save the file.
146+
147+
121148
## Prepare web part assets to deploy
122149

123150
Before uploading the assets to CDN, you need to build them.
@@ -151,32 +178,6 @@ gulp deploy-azure-storage
151178

152179
This will deploy the web part bundle along with other assets like JavaScript and CSS files to the CDN.
153180

154-
### Configuring web part to load from CDN
155-
156-
In order for the web part to load from your CDN, you will need to tell it your CDN path.
157-
158-
Switch to Visual Studio Code and open the **write-manifests.json** from the **config** folder.
159-
160-
Enter your CDN base path for the **cdnBasePath** property.
161-
162-
```json
163-
{
164-
"cdnBasePath": "<!-- PATH TO CDN -->"
165-
}
166-
```
167-
168-
In this example, with the CDN profile created earlier, this file will look like:
169-
170-
```json
171-
{
172-
"cdnBasePath": "https://spfxsamples.azureedge.net/helloworld-webpart/"
173-
}
174-
```
175-
176-
>**Note:** The CDN base path is the CDN endpoint with the BLOB container.
177-
178-
Save the file.
179-
180181
## Deploy the updated package
181182

182183
### Package the solution

docs/spfx/web-parts/get-started/serve-your-web-part-in-a-sharepoint-page.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ helloworld-webpart.sppkg
6262
The package uses SharePoint Feature to package your web part. By default, the gulp task creates the following:
6363

6464
* A feature for your web part.
65-
* A .webpart file for your web part, which is an XML file that describes the Web Part.
6665

67-
You can view the raw package contents in the **sharepoint** folder.
66+
You can view the raw package contents in the **sharepoint/debug** folder.
6867

6968
The contents are then packaged into an **.sppkg** file. The package format is very similar to a SharePoint add-ins package and uses Microsoft Open Packaging Conventions to package your solution.
7069

0 commit comments

Comments
 (0)