Search
Preparing search index...
The search index is not available
GlacierJS API Doc
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
GlacierJS API Doc
@glacierjs/core
Pluggable
Class Pluggable<CustomPlugin, Lifecycle, LifecycleHooks>
Type parameters
CustomPlugin
:
Plugin
<
BaseContext
>
Lifecycle
:
string
LifecycleHooks
:
Record
<
Lifecycle
,
LifecycleHook
<
BaseContext
>
>
Hierarchy
Pluggable
Index
Constructors
constructor
Properties
lifecycle
Hooks
lifecycles
plugins
Methods
call
Lifecyle
Middlewares
use
use
Global
Plugins
use
Scope
Plugins
Constructors
constructor
new
Pluggable
<
CustomPlugin
,
Lifecycle
,
LifecycleHooks
>
(
lifecycles
?:
string
[]
, lifecycleHooks
:
LifecycleHooks
)
:
Pluggable
<
CustomPlugin
,
Lifecycle
,
LifecycleHooks
>
Type parameters
CustomPlugin
:
Plugin
<
BaseContext
,
CustomPlugin
>
Lifecycle
:
string
LifecycleHooks
:
Record
<
Lifecycle
,
LifecycleHook
<
BaseContext
>
>
Parameters
lifecycles:
string
[]
= []
lifecycleHooks:
LifecycleHooks
Returns
Pluggable
<
CustomPlugin
,
Lifecycle
,
LifecycleHooks
>
Properties
Protected
lifecycle
Hooks
lifecycle
Hooks
:
LifecycleHooks
Protected
lifecycles
lifecycles
:
string
[]
= []
plugins
plugins
:
{
global
:
Record
<
string
,
CustomPlugin
>
;
scope
:
Record
<
string
,
Record
<
string
,
CustomPlugin
>
>
}
= ...
Type declaration
global
:
Record
<
string
,
CustomPlugin
>
scope
:
Record
<
string
,
Record
<
string
,
CustomPlugin
>
>
Methods
Protected
call
Lifecyle
Middlewares
call
Lifecyle
Middlewares
<
Context
>
(
scopePath
:
string
|
string
[]
, lifecycle
:
Lifecycle
, context
?:
Context
)
:
Promise
<
void
>
Type parameters
Context
:
BaseContext
Parameters
scopePath:
string
|
string
[]
lifecycle:
Lifecycle
Optional
context:
Context
Returns
Promise
<
void
>
use
use
(
plugins
:
CustomPlugin
|
CustomPlugin
[]
)
:
void
use
(
scope
:
string
, plugins
:
CustomPlugin
|
CustomPlugin
[]
)
:
void
Parameters
plugins:
CustomPlugin
|
CustomPlugin
[]
Returns
void
Parameters
scope:
string
plugins:
CustomPlugin
|
CustomPlugin
[]
Returns
void
Private
use
Global
Plugins
use
Global
Plugins
(
plugins
:
CustomPlugin
[]
)
:
void
Parameters
plugins:
CustomPlugin
[]
Returns
void
Private
use
Scope
Plugins
use
Scope
Plugins
(
scope
:
string
, plugins
:
CustomPlugin
[]
)
:
void
Parameters
scope:
string
plugins:
CustomPlugin
[]
Returns
void
Modules
@glacierjs/core
@glacierjs/plugin-
assets-
cache
@glacierjs/plugin-
collector
@glacierjs/plugin-
precache
@glacierjs/plugin-
remote-
controller
@glacierjs/sw
@glacierjs/window
Pluggable
constructor
lifecycle
Hooks
lifecycles
plugins
call
Lifecyle
Middlewares
use
use
Global
Plugins
use
Scope
Plugins
Generated using
TypeDoc