Skip to content

Complementary npm package for the FormatD.ComponentLoader

Notifications You must be signed in to change notification settings

Format-D/formatd-component-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Pre Release

FormatD.ComponentLoader

An easy way to load Javascript for fusion components

Compatibility

Versioning scheme:

 1.0.0 
 | | |
 | | Bugfix Releases (non breaking)
 | Neos Compatibility Releases (non breaking)
 Feature Releases (breaking)

Releases and compatibility:

Package-Version Neos CMS Version
1.0.x 7.x and newer

Create a component manager:

export default class MyComponentManager extends AbstractComponentManager {
	initialize(domSection: HTMLElement) {
		console.log("Hello World")
	}
}

Include the corresponding files

import {componentLoader} from formatd-component-loader;

componentLoader.addDefaultImport('Vendor.Website:MyComponent', () => import('../private/Fusion/MyComponent'));
//...
componentLoader.initialize()

About

Complementary npm package for the FormatD.ComponentLoader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published