Features
- Add
entry
config instead of manifest, scripts, styles and resourcePathPrefix, support string and object type ({ manifest: string; scripts: string[], styles: string[], basePath: string }) - Support set
index.html
for entry instead of manifest, scripts, styles and resourcePathPrefix, planet will parse scripts and styles from html text (#308) (0670411)
{
entry: "http://127.0.0.1:3001/index.html"
}
or
{
entry: {
manifest: "http://127.0.0.1:3001/index.html" // or "http://127.0.0.1:3001/assets-manifest.json"
scripts: ["main.js"],
styles: ["main.css]
}
}
- Support load standalone app #INFR-11810 (#305) (9a750ad), closes #INFR-11810
defineApplication('standalone-app', {
template: `<standalone-app-root></standalone-app-root>`,
bootstrap: (portalApp: PlanetPortalApplication) => {
return bootstrapApplication(AppRootComponent, {
providers: [
{
provide: PlanetPortalApplication,
useValue: portalApp
}
]
}).catch(error => {
console.error(error);
return null;
});
}
});