You're viewing the documentation forv2.Current latest version isv5.
View latest version here.
Version: v2

Class: DevServerPlugin

Class for running development server that handles serving the built bundle, all assets as well as providing Hot Module Replacement functionality.

Implements

Table of contents

Constructors

Methods

Constructors

constructor

• new DevServerPlugin(config)

Constructs new DevServerPlugin.

Parameters

Name Type Description
config DevServerPluginConfig Plugin configuration options.

Defined in

packages/repack/src/webpack/plugins/DevServerPlugin/DevServerPlugin.ts:41

Methods

apply

▸ apply(compiler): void

Apply the plugin.

Parameters

Name Type Description
compiler Compiler Webpack compiler instance.

Returns

void

Implementation of

WebpackPlugin.apply

Defined in

packages/repack/src/webpack/plugins/DevServerPlugin/DevServerPlugin.ts:51