docs.rs failed to build microsoft-webui-cli-0.0.12
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
microsoft-webui-cli
Command-line tool for the WebUI framework — build, serve, and inspect WebUI applications.
Install
This installs the webui binary.
Commands
webui build
Build a WebUI application into a compiled protocol and CSS files.
| Option | Default | Description |
|---|---|---|
APP |
. |
Template/component directory |
--out |
(required) | Output directory for protocol.bin + CSS |
--entry |
index.html |
Entry HTML file |
--css |
link |
CSS mode: link (external files) or style (inline) |
--plugin |
(none) | Framework plugin: webui for WebUI Framework, fast-v3 for @microsoft/fast-element 3.x hydration, or deprecated fast-v2/fast for @microsoft/fast-element 2.x compatibility |
webui serve
Start a development server with live rebuild and HMR.
| Option | Default | Description |
|---|---|---|
APP |
. |
Template/component directory |
--state |
(none) | JSON state file for rendering |
--servedir |
(none) | Static assets directory served at /* |
--port |
3000 |
Server port |
--api-port |
(none) | Proxy API requests to this port |
--plugin |
(none) | Framework plugin: webui for WebUI Framework, fast-v3 for @microsoft/fast-element 3.x hydration, or deprecated fast-v2/fast for @microsoft/fast-element 2.x compatibility |
--watch |
off | Enable file watching + HMR |
Features:
- Renders HTML at
/and all route paths - Serves static files from
--servedir - JSON partials for client-side navigation (
Accept: application/json) - HMR polling at
/hmrwhen--watchis enabled - API proxy when
--api-portis set
webui inspect
Convert a compiled protocol to JSON for debugging.
App Layout
my-app/
├── src/
│ ├── index.html # entry template
│ ├── my-card.html # component template
│ └── my-card.css # component styles
├── data/
│ └── state.json # render state
└── dist/ # build output
├── protocol.bin
└── my-card.css
License
MIT