Webpack 5 has been officially released. Read our announcement. Not ready yet? Read webpack 4 documentation here.
The Compiler object has many methods and properties available. On this page, we will list the available methods and properties.
function (name)
Returns the cache facade instance.
Parameters:
name - cache namefunction (name)
Return a logger with that name
Parameters:
name - name of the logger, or function called once to get the logger namefunction (watchOptions, handler)
Returns a compiler watcher
watchOptions - the watcher's options.handler - signals when the call finishes.function (compilation, callback)
compilation - the compilationcallback signals when the assets are emitted
