Last updated
Was this helpful?
Last updated
Was this helpful?
This manifest declares a single JavaScript file that will be loaded and run when the Backoffice starts. In other words, this can be used as an entry point for a package.
The backofficeEntryPoint
extension is also the way to go if you want to load in external libraries such as jQuery, Angular, React, etc. You can use the backofficeEntryPoint
to load in the external libraries to be shared by all your extensions. Additionally, global CSS files can also be used in the backofficeEntryPoint
extension.
Register a Backoffice Entry Point in the umbraco-package.json
manifest
Base structure of the entry point file
An entry point is a good place to load global CSS files for the whole application. You can do this by creating a link element and appending it to the head of the document:
Alternatively, you can import the CSS file directly in your JavaScript file:
It is recommended to make use of the Type intellisense that we provide.
See the Extension Types article for more information about all the different extension types available in Umbraco:
Read about running code before log in using an appEntryPoint
:
If you only need to register extensions, then consider using a type instead.
When writing your Manifest in TypeScript you should use the Type UmbExtensionManifest
, see the article to make sure you have Types correctly configured.
The Backoffice Entry Point extension type is used to run some JavaScript code at startup.