Interface: WebpackEnvOptions

Represents all relevant options that are passed to Webpack config function, needed to create a valid Webpack configuration and configure all plugins.

This is the return type of {@link parseCliOptions}.

Table of contents

Properties

Properties

assetsPath

Optional assetsPath: string

Assets output path - directory where generated static assets will be saved.

Defined in

packages/repack/src/types.ts:161


bundleFilename

Optional bundleFilename: string

Bundle output filename - name under which generated bundle will be saved.

Defined in

packages/repack/src/types.ts:153


context

Optional context: string

Context in which all resolution happens. Usually it's project root directory.

Defined in

packages/repack/src/types.ts:147


devServer

Optional devServer: DevServerOptions

Development server configuration options. Used to configure @callstack/repack-dev-server.

If undefined, then development server should not be run.

Defined in

packages/repack/src/types.ts:175


entry

Optional entry: string

Input filename - entry point of the bundle.

Defined in

packages/repack/src/types.ts:150


minimize

Optional minimize: boolean

Whether to minimize the final bundle.

Defined in

packages/repack/src/types.ts:164


mode

Optional mode: "development" | "production"

Compilation mode.

Defined in

packages/repack/src/types.ts:141


platform

Optional platform: string

Target application platform.

Defined in

packages/repack/src/types.ts:144


reactNativePath

Optional reactNativePath: string

Path to React Native dependency. Usually points to node_modules/react-native.

Defined in

packages/repack/src/types.ts:167


sourceMapFilename

Optional sourceMapFilename: string

Source map filename - name under which generated source map (for the main bundle) will be saved.

Defined in

packages/repack/src/types.ts:158