Plugin

vue-pack's plugin.

type Plugin = (context: PluginContext) => void;

context

Type: PluginContext

Context of plugin.

PluginContext

Context of plugin.

interface PluginContext {
	readonly webpackConfigs: PluginWebpackConfigGroup;
	readonly config: Configuration;
}

webpackConfigs

Type: PluginWebpackConfigGroup

Group of all webpack-chain's configurations instance that's created in vue-pack.

config

Type: Configuration

vue-pack's configuration.

PluginWebpackConfigGroup

Group of all webpack-chain's configurations instance.

TIP

PluginWebpackConfigGroup is alias of WebpackChainConfigGroup.

Please see WebpackChainConfigGroup for more information.