import {WebpackBaseConfiguration} from 'projext-plugin-webpack/src/services/configurations/baseConfiguration.js'WebpackBaseConfiguration
Extends:
The base configuration is at the top of the Webpack configurations level and it includes the
settings for resolve and module.
Constructor Summary
| Public Constructor | ||
| public |
constructor(events: Events, packageInfo: Object, pathUtils: PathUtils, webpackPluginInfo: WebpackPluginInfo, webpackRulesConfiguration: WebpackRulesConfiguration) Class constructor. |
|
Member Summary
| Public Members | ||
| public |
A local reference for the |
|
| public |
The information of the |
|
| public |
A local reference for the plugin information. |
|
| public |
A local reference for the |
|
Method Summary
| Public Methods | ||
| public |
createConfig(params: WebpackConfigurationParams): object Create the configuration with the |
|
Inherited Summary
| From class ConfigurationFile | ||
| public |
Whether the configuration should be created every time |
|
| public |
A list of paths that can overwrite the configuration. |
|
| public |
A parent configuration to extend. |
|
| public |
A local reference for the |
|
| public abstract |
This method will be called the first time |
|
| public |
This is the public method all other services uses to obtain the configuration. |
|
Public Constructors
public constructor(events: Events, packageInfo: Object, pathUtils: PathUtils, webpackPluginInfo: WebpackPluginInfo, webpackRulesConfiguration: WebpackRulesConfiguration) source
Class constructor.
Override:
ConfigurationFile#constructorParams:
| Name | Type | Attribute | Description |
| events | Events | To reduce the configuration. |
|
| packageInfo | Object | The contents of the
|
|
| pathUtils | PathUtils | Required by |
|
| webpackPluginInfo | WebpackPluginInfo | To get the paths that should be defined as external dependencies. |
|
| webpackRulesConfiguration | WebpackRulesConfiguration | To get all the configuration rules for the type of files that will be bundled. |
Public Members
public webpackRulesConfiguration: WebpackRulesConfiguration source
A local reference for the webpackRulesConfiguration service.
Public Methods
public createConfig(params: WebpackConfigurationParams): object source
Create the configuration with the resolve and the module rules.
This method uses the reducer events webpack-base-configuration-for-node or
webpack-base-configuration-for-browser, depending on the target type, and
webpack-base-configuration'. The events recieve the configuration, the params and
expects a configuration on return.
Override:
ConfigurationFile#createConfigParams:
| Name | Type | Attribute | Description |
| params | WebpackConfigurationParams | A dictionary generated by the top service building the configuration and that includes things like the target information, its entry settings, output paths, etc. |
