Different entry points
Managing different configurations for client and server requires separate entry points:
Client Entry Point
Typically named main.js
or main.ts
, this file initializes Aurelia for the client-side application.
Server Entry Point
Create a separate entry point, such as server-main.js
or server-main.ts
, tailored for server-side rendering.
Webpack Configuration
Configure Webpack to recognize and build client and server bundles with their respective entry points.
Ensure each bundle is optimized for its target environment, appropriately handling dependencies and optimisations.
Last updated
Was this helpful?