import {WebpackRulesConfiguration} from 'projext-plugin-webpack/src/services/configurations/rulesConfiguration.js'WebpackRulesConfiguration
Extends:
Define the Webpack configuration rules for basic types of assets: Javascript, stylesheets, images and fonts.
Constructor Summary
| Public Constructor | ||
| public |
constructor(babelConfiguration: BabelConfiguration, events: Events, packageInfo: Object, pathUtils: PathUtils) Class constructor. |
|
Member Summary
| Public Members | ||
| public |
A local reference for the |
|
| public |
A local reference for the |
|
Method Summary
| Public Methods | ||
| public |
createConfig(params: WebpackConfigurationParams): Object Creates the rules configuration for the required target. |
|
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(babelConfiguration: BabelConfiguration, events: Events, packageInfo: Object, pathUtils: PathUtils) source
Class constructor.
Override:
ConfigurationFile#constructorParams:
| Name | Type | Attribute | Description |
| babelConfiguration | BabelConfiguration | Used to configure the |
|
| events | Events | To reduce each set of rules and the entire configuration. |
|
| packageInfo | Object | To read the dependencies list. |
|
| pathUtils | PathUtils | Required by |
Public Members
public babelConfiguration: BabelConfiguration source
A local reference for the babelConfiguration service.
Public Methods
public createConfig(params: WebpackConfigurationParams): Object source
Creates the rules configuration for the required target.
This method uses the reducer events webpack-rules-configuration-for-node or
webpack-rules-configuration-for-browser, depending on the target type, and then
webpack-rules-configuration. The event receives the configuration object, the params and
it expects an updated configuration object 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. |
