12 lines
393 B
TypeScript
12 lines
393 B
TypeScript
import { appConfig } from './app/app.config';
|
|
import { App } from './app/app';
|
|
import { bootstrapPhoenixPluginCustomElement } from '@phx-erp/shared-ui';
|
|
import { environment } from './environments/environment';
|
|
|
|
bootstrapPhoenixPluginCustomElement(App, 'frontend-plugin-demo', appConfig)
|
|
.then((app) => {
|
|
if(!environment.production)
|
|
return app!.bootstrap(App);
|
|
else
|
|
return app;
|
|
}); |