Skip to content

WebAppPlugin

Defined in: src/plugins/application/web-app/plugin.ts:32

WebAppPlugin

Development mode (ANGULAR_DEV_PORT env set): Proxies all /_app/** requests to the Angular dev server running on that port. Enables live reload without rebuilding.

Production mode: Serves the built Angular SPA from client/dist/browser/. All sub-paths not matching a static asset are rewritten to index.html for SPA client-side navigation support.

Injects window.SHOKUPAN_BASE into the served index.html so the Angular app knows the server’s base URL at runtime.

new WebAppPlugin(opts): WebAppPlugin

Defined in: src/plugins/application/web-app/plugin.ts:38

WebAppPluginOptions = {}

WebAppPlugin

onInit(app, options?): Promise<void>

Defined in: src/plugins/application/web-app/plugin.ts:46

Shokupan

WebAppPluginOptions

Promise<void>

ShokupanPlugin.onInit