taggor dev
taggor dev
Section titled “taggor dev”Preview your components locally on a test page with hot reload.
npx taggor dev [<component>] [options]| Argument | What it does | Default |
|---|---|---|
[<component>] |
Show only this component (and the ones it draws), by the tag in taggor.json; default: every component. | - |
--no-browser |
Do not open the browser (it opens on its own only at a terminal: never without one, with --json or with --no-input). |
- |
--port <value> |
Port of the local server (default 4321; it listens on 127.0.0.1 only). | - |
--host-html <value> |
Use this HTML file of the project as the host page (default: a page with hostile CSS). | - |
--reset-data |
Clear the fake data of the previous runs (.taggor/dev-data.json) at start. | - |
Also takes the common options: --json, --no-input.
npx taggor devnpx taggor dev --port 4400 --reset-dataExit codes: 0 ok, 1 generic, 2 usage. What each code means.