Preparing search index...
The search index is not available
webpack-userscript
webpack-userscript
UserscriptPlugin
Class UserscriptPlugin
Hierarchy
UserscriptPlugin
Implements
WebpackPluginInstance
UserscriptPluginInstance
Index
Constructors
constructor
Properties
contexts
features
hooks
name
options
Methods
apply
close
collect
File
Info
emit
Userscript
init
preprocess
process
Constructors
constructor
new
Userscript
Plugin
(
options
?:
UserscriptOptions
)
:
UserscriptPlugin
Parameters
options:
UserscriptOptions
= {}
Returns
UserscriptPlugin
Properties
Private
Readonly
contexts
contexts
:
WeakMap
<
Compilation
,
CompilationContext
>
= ...
Readonly
features
features
:
Feature
<
unknown
>
[]
Readonly
hooks
hooks
:
{
close
:
AsyncParallelHook
<
[
Compiler
]
,
UnsetAdditionalOptions
>
;
headers
:
AsyncSeriesWaterfallHook
<
[
HeadersProps
,
WaterfallContext
]
,
UnsetAdditionalOptions
>
;
init
:
AsyncParallelHook
<
[
Compiler
]
,
UnsetAdditionalOptions
>
;
preprocess
:
AsyncParallelHook
<
[
Compilation
,
CompilationContext
]
,
UnsetAdditionalOptions
>
;
process
:
AsyncParallelHook
<
[
Compilation
,
CompilationContext
]
,
UnsetAdditionalOptions
>
;
proxyHeaders
:
AsyncSeriesWaterfallHook
<
[
HeadersProps
,
WaterfallContext
]
,
UnsetAdditionalOptions
>
;
proxyScriptFile
:
AsyncSeriesWaterfallHook
<
[
string
,
WaterfallContext
]
,
UnsetAdditionalOptions
>
;
renderHeaders
:
AsyncSeriesBailHook
<
Map
<
string
,
HeadersProps
>
,
string
,
UnsetAdditionalOptions
>
;
renderProxyHeaders
:
AsyncSeriesBailHook
<
HeadersProps
,
string
,
UnsetAdditionalOptions
>
;
}
= ...
Type declaration
close
:
AsyncParallelHook
<
[
Compiler
]
,
UnsetAdditionalOptions
>
headers
:
AsyncSeriesWaterfallHook
<
[
HeadersProps
,
WaterfallContext
]
,
UnsetAdditionalOptions
>
init
:
AsyncParallelHook
<
[
Compiler
]
,
UnsetAdditionalOptions
>
preprocess
:
AsyncParallelHook
<
[
Compilation
,
CompilationContext
]
,
UnsetAdditionalOptions
>
process
:
AsyncParallelHook
<
[
Compilation
,
CompilationContext
]
,
UnsetAdditionalOptions
>
proxy
Headers
:
AsyncSeriesWaterfallHook
<
[
HeadersProps
,
WaterfallContext
]
,
UnsetAdditionalOptions
>
proxy
Script
File
:
AsyncSeriesWaterfallHook
<
[
string
,
WaterfallContext
]
,
UnsetAdditionalOptions
>
render
Headers
:
AsyncSeriesBailHook
<
Map
<
string
,
HeadersProps
>
,
string
,
UnsetAdditionalOptions
>
render
Proxy
Headers
:
AsyncSeriesBailHook
<
HeadersProps
,
string
,
UnsetAdditionalOptions
>
Readonly
name
name
:
"UserscriptPlugin"
= 'UserscriptPlugin'
Private
options
options
:
UserscriptPluginOptions
= {}
Methods
apply
apply
(
compiler
:
Compiler
)
:
void
Parameters
compiler:
Compiler
Returns
void
Private
close
close
(
compiler
:
Compiler
)
:
Promise
<
void
>
Parameters
compiler:
Compiler
Returns
Promise
<
void
>
Private
collect
File
Info
collect
File
Info
(
compilation
:
Compilation
)
:
FileInfo
[]
Parameters
compilation:
Compilation
Returns
FileInfo
[]
Private
emit
Userscript
emit
Userscript
(
compilation
:
Compilation
, context
:
CompilationContext
, fileInfo
:
FileInfo
)
:
Promise
<
void
>
Parameters
compilation:
Compilation
context:
CompilationContext
fileInfo:
FileInfo
Returns
Promise
<
void
>
Private
init
init
(
compiler
:
Compiler
)
:
Promise
<
void
>
Parameters
compiler:
Compiler
Returns
Promise
<
void
>
Private
preprocess
preprocess
(
compilation
:
Compilation
)
:
Promise
<
void
>
Parameters
compilation:
Compilation
Returns
Promise
<
void
>
Private
process
process
(
compilation
:
Compilation
)
:
Promise
<
void
>
Parameters
compilation:
Compilation
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
webpack-
userscript
Userscript
Plugin
constructor
contexts
features
hooks
name
options
apply
close
collect
File
Info
emit
Userscript
init
preprocess
process
Generated using
TypeDoc