synchronously applies all registered handlers for target name(event id).
The handlers are called with all the rest arguments.
plugin group name
asynchronously applies all registered handlers for target name(event id).
The handlers are called with all the rest arguments and a callback function with the signature (err: Error) => void.
The handlers are called in series, one at a time. After all handlers are applied, callback is called.
If any handler invokes the (anonymous)callback with error, no more handlers will be called and the real callback is call with that error.
same as applyPluginsAsync
asynchronously applies all registered handlers for target name(event id).
The handlers are called with all the rest arguments and a callback function with the signature (...params) => void.
Handlers must invoke the (anonymous)callback, otherwise the series is cut down and real callback won't be invoked.
The order is defined by registration order not by speed of the handler function.
If a handler returns something !== undefined, that value is returned and no more handlers will be applied.
asynchronously applies all registered handlers for target name(event id).
Asynchronously applies all registered handlers for target name(event id).
The handlers are called with the current value and a callback function with the signature (err: Error, nextValue: any) => void.
init
is used for the first handler. The rest handles are called with the value which previous handler uses
to invoke the (anonymous)callback invoked
After all handlers are applied, callback is called with the last value.
If any handler invokes the (anonymous)callback with error, no more handlers will be called and the real callback is call with that error.
synchronously applies all registered handlers for target name(event id).
The handlers are called with all the rest arguments.
If a handler returns something !== undefined, that value is returned and no more handlers will be applied.
synchronously applies all registered handlers for target name(event id).
The handlers are called with target param
If a handler returns something !== undefined, the value is returned and no more handlers are applied.
Note: the fundamental difference with <a href="_css_blocks_webpack.cssblocksplugin.html#applypluginsbailresult">applyPluginsBailResult</a>
, is that,
<a href="_css_blocks_webpack.cssblocksplugin.html#applypluginsbailresult">applyPluginsBailResult</a>
passes the arguments as arguments list for plugins
while <a href="_css_blocks_webpack.cssblocksplugin.html#applypluginsbailresult1">applyPluginsBailResult1</a>
passes the arguments as single param(any type) for plugins
applies all registered handlers for target name(event id) in parallel.
The handlers are called with all the rest arguments and a callback function with the signature (err?: Error) => void.
The callback function is called when all handlers call the callback without err.
If any handler invokes the callback with err, callback is invoked with this error and the other handlers are skipped.
applies all registered handlers for target name(event id) in parallel.
The handlers are called with all the rest arguments and a callback function with the signature (currentResult?: []) => void.
Handlers must call the callback.
The first result (either error or value) with is not undefined is passed to the callback.
The order is defined by registration not by speed of the handler function.
applies all registered handlers for target name(event id) in parallel.
synchronously applies all registered handlers for target name(event id).
The handlers are called with the return value of the previous handler and all the rest arguments.
init
is used for the first handler.
return the returned value of the last handler
synchronously applies all registered handlers for target name(event id).
The handlers are called ONLY with the return value of the previous handler.
init
is used for the first handler.
return the returned value of the last handler
Fires when the compilation is first started to let any listeners know that their current promise is no longer valid.
Fires when the compilation is done.
Fires when the compilation promise is available.
Register plugin(s) This acts as the same as on() of EventEmitter, for registering a handler/listener to do something when the signal/event happens.
a string or an array of strings to generate the id(group name) of plugins
a function which provides the plugin functionality *
Generated using TypeDoc