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: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,7 @@ Set the `project-src` attribute or `projectSrc` property to a JSON file with for
213
213
|`files.hidden`| If `true`, the file won't be visible in `playground-tab-bar`. |
214
214
|`files.selected`| If `true`, this file's tab will be selected when the project is loaded. Only one file should have this field set. |
215
215
|`extends`| Optional URL to another JSON config file to extend from. Configs are deeply merged. URLs are interpreted relative to the URL of each extendee config. |
216
+
|`cdnBaseUrl`| Optional URL for the underlying npm CDN base url. Confirmed tested are `htts://unpkg.com` and `https://cdn.jsdelivr.net/npm`|
|`projectSrc`|`string`|`undefined`| URL of the [project manifest](#project-manifest) to load |
682
684
|`config`|`ProjectManifest`|`undefined`| Get or set the project configuration and files, ([details](#option-3-config-property)). |
685
+
|`cdnBaseUrl`|`string`|`https://unpkg.com`| Change the underlying npm CDN base url. Confirmed tested are `htts://unpkg.com` and `https://cdn.jsdelivr.net/npm`|
683
686
|`lineNumbers`|`boolean`|`false`| Render a gutter with line numbers in the editor |
684
687
|`lineWrapping`|`boolean`|`false`| If `true`, long lines are wrapped, otherwise the editor will scroll. |
685
688
|`editableFileSystem`|`boolean`|`false`| Allow adding, removing, and renaming files |
|`projectSrc`|`string`|`undefined`| URL of a [project files manifest](#option-2-json-manifest) to load. |
712
715
|`config`|`ProjectManifest`|`undefined`| Get or set the project configuration and files, ([details](#option-3-config-property)). |
716
+
|`cdnBaseUrl`|`string`|`https://unpkg.com`| Change the underlying npm CDN base url. Confirmed tested are `htts://unpkg.com` and `https://cdn.jsdelivr.net/npm`|
713
717
|`sandboxScope`|`string`|`"playground-elements"`| The service worker scope to register on. |
714
718
|`sandboxBaseUrl`|`string`|_module parent directory_| Base URL for untrusted JavaScript execution (⚠️ use with caution, see [sandbox security](#sandbox-security)). Resolved relative to the module containing the definition of `<playground-project>`. |
715
719
|`diagnostics`|`Map<string, lsp.Diagnostic>`|`undefined`| Map from filename to array of Language Server Protocol diagnostics resulting from the latest compilation. |
0 commit comments