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.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebAppPlugin(
opts):WebAppPlugin
Defined in: src/plugins/application/web-app/plugin.ts:38
Parameters
Section titled “Parameters”WebAppPluginOptions = {}
Returns
Section titled “Returns”WebAppPlugin
Methods
Section titled “Methods”onInit()
Section titled “onInit()”onInit(
app,options?):Promise<void>
Defined in: src/plugins/application/web-app/plugin.ts:46
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<void>