ILoaderPlugin
interface ILoaderPlugin
Plugin to be installed for handling specific Loader resources.
Summary
Methods from ILoaderPlugin
void |
Function to call immediate after registering plugin. |
void |
|
void |
|
Public Properties
pre: Function
Middleware function to run before load, the
arguments for this are (resource, next)
use: Function
Middleware function to run after load, the
arguments for this are (resource, next)
Public Methods
add() → {void}
Function to call immediate after registering plugin.
Type | Description |
---|---|
void |
pre(resource: LoaderResource, next: LoaderResource) → {void}
Middleware function to run before load
Name | Type | Description |
---|---|---|
resource | LoaderResource |
resource |
next | LoaderResource |
next middleware |
Type | Description |
---|---|
void |
use(resource: LoaderResource, next: LoaderResource) → {void}
Middleware function to run after load
Name | Type | Description |
---|---|---|
resource | LoaderResource |
resource |
next | LoaderResource |
next middleware |
Type | Description |
---|---|
void |