Skip to main content
Version: 2x

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

NameTypeDescription
configDevServerPluginConfigPlugin configuration options.

Defined in

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

Methods

apply

apply(compiler): void

Apply the plugin.

Parameters

NameTypeDescription
compilerCompilerWebpack compiler instance.

Returns

void

Implementation of

WebpackPlugin.apply

Defined in

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