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
{{ message }}
This repository was archived by the owner on Jul 30, 2018. It is now read-only.
By convention, this file should be named `createMyWidgetElement.ts`.
597
+
598
+
To build your custom element, use [dojo cli](https://github.com/dojo/cli),
599
+
600
+
```bash
601
+
$dojobuild --element=/path/to/createMyWidget.ts
602
+
```
603
+
604
+
This will generate the following files,
605
+
606
+
* `dist/my-widget/my-widget.html` - HTML import file that includes all widget dependencies. This is the only file you need to import into your HTML page to use your widget.
607
+
* `dist/my-widget/my-widget.js` - A compiled version of your widget.
608
+
* `dist/my-widget/my-widget.css` - The CSS for your widget
609
+
* `dist/my-widget/widget-core.js` - A shared base widget library. Keeping this separate means that you can include multiple HTML imports and the browser will not re-request this shared file.
610
+
611
+
Using your widget would be a simple matter of importing the HTML import,
0 commit comments