@webplan-pro/webplan-site-core
v0.0.4
Published
Core engine for Webplan sites
Readme
@webplan-pro/webplan-site-core
Reusable runtime and tooling for Webplan static sites.
Install
npm install @webplan-pro/webplan-site-core react react-dom react-router-domExports
@webplan-pro/webplan-site-core: client-side routing and content helpers.@webplan-pro/webplan-site-core/node: Vite config helper and prerender support.
CLI
The package exposes a webplan binary for local site development:
webplan dev
webplan build
webplan prerender
webplan previewwebplan build runs the Vite production build and then prerenders the route output.
webplan prerender reruns the prerender phase against an existing build, which is useful after content-only changes or for explicit CI steps.
webplan preview serves the built static output from dist, resolves prerendered route directories such as /docs/ to dist/docs/index.html, and falls back to the root index.html only for extensionless history-style routes.
Common overrides:
webplan prerender
webplan preview --host 127.0.0.1 --port 4174
webplan preview --outDir buildPackage Maintenance
Validate the package before publishing:
npm run build
npm pack --dry-runPublish target:
- Registry:
npmjs.org - Access:
public
