Skip to main content
Version: 2x

Class: OutputPlugin

Plugin for copying generated files (bundle, chunks, assets) from Webpack's built location to the React Native application directory, so that the files can be packed together into the ipa/apk.

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new OutputPlugin(config)

Constructs new OutputPlugin.

Parameters

NameTypeDescription
configOutputPluginConfigPlugin configuration options.

Defined in

packages/repack/src/webpack/plugins/OutputPlugin.ts:45

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/OutputPlugin.ts:56