Home Reference Source
public class | source

RollupBrowserDevelopmentConfiguration

Extends:

ConfigurationFile → RollupBrowserDevelopmentConfiguration

Creates the specifics of a Rollup configuration for a browser target development build.

Constructor Summary

Public Constructor
public

constructor(events: Events, pathUtils: PathUtils, rollupPluginSettingsConfiguration: RollupPluginSettingsConfiguration)

Member Summary

Public Members
public

A local reference for the events service.

public

A local reference for the rollupPluginSettingsConfiguration service.

Method Summary

Public Methods
public

Creates the complete configuration for a browser target development build.

Inherited Summary

From class ConfigurationFile
public

Whether the configuration should be created every time getConfig gets called or not.

public

A list of paths that can overwrite the configuration.

public

A parent configuration to extend.

public

A local reference for the pathUtils service.

public abstract

This method will be called the first time getConfig gets called (or every time, depending on the value of the asFactory property) and it should return the configuration contents.

public

This is the public method all other services uses to obtain the configuration.

Public Constructors

public constructor(events: Events, pathUtils: PathUtils, rollupPluginSettingsConfiguration: RollupPluginSettingsConfiguration) source

Class constructor.

Override:

ConfigurationFile#constructor

Params:

NameTypeAttributeDescription
events Events

To reduce the configuration.

pathUtils PathUtils

Required by ConfigurationFile in order to build the path to the overwrite file.

rollupPluginSettingsConfiguration RollupPluginSettingsConfiguration

To get the plugin settings.

Public Members

public events: Events source

A local reference for the events service.

public rollupPluginSettingsConfiguration: RollupPluginSettingsConfiguration source

A local reference for the rollupPluginSettingsConfiguration service.

Public Methods

public createConfig(params: RollupConfigurationParams): Object source

Creates the complete configuration for a browser target development build. This method uses the reducer events rollup-browser-development-configuration and rollup-browser-configuration. It sends the configuration, the received params and expects a configuration on return.

Override:

ConfigurationFile#createConfig

Params:

NameTypeAttributeDescription
params RollupConfigurationParams

A dictionary generated by the top service building the configuration and that includes things like the target information, its entry settings, output paths, etc.

Return:

Object