lndsld

Home > @lndsld/config-builders > WebpackConfigBuilder

WebpackConfigBuilder class

Builder for webpack configuration

Signature:

declare class WebpackConfigBuilder<Environment = {}> 

Constructors

Constructor Modifiers Description
(constructor)(environment)   Constructs a new instance of the WebpackConfigBuilder class

Properties

Property Modifiers Type Description
config   Readonly<Configuration> Current webpack configuration
env   Readonly<Environment> Readonly build env

Methods

Method Modifiers Description
addPlugin(plugin)   Add webpack plugin to configuration
addRule(rule)   Add module rule to configuration
apply(plugin)   Apply builder plugin
map(transformer)   Manually transform configuration
merge(config)   Merge additional configuration