Skip to content

17.0.0

Latest
Compare
Choose a tag to compare
@why520crazy why520crazy released this 18 Mar 09:01
· 26 commits to master since this release

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]
 }
}
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;
        });
    }
});