Interface: WebpackOptions

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

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

Table of contents

Properties

Properties

context

context: string

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

Defined in

packages/repack/src/types.ts:137


dev

dev: boolean

Inferred from mode. true is mode is development.

Defined in

packages/repack/src/types.ts:133


devServer

Optional devServer: DevServerOptions

Development server configuration options. Used by DevServerPlugin, BaseDevServer, DevServer and DevServerProxy.

If undefined, then development server should not be run.

Defined in

packages/repack/src/types.ts:159


entry

entry: string

Input filename - entry point of the bundle.

Defined in

packages/repack/src/types.ts:139


minimize

minimize: boolean

Whether to minimize the final bundle.

Defined in

packages/repack/src/types.ts:150


mode

mode: "production" | "development"

Compilation mode.

Defined in

packages/repack/src/types.ts:131


outputFilename

outputFilename: string

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

Defined in

packages/repack/src/types.ts:143


outputPath

outputPath: string

Bundle output path - directory where built bundle will be saved.

Defined in

packages/repack/src/types.ts:141


platform

platform: string

Target application platform.

Defined in

packages/repack/src/types.ts:135


reactNativePath

reactNativePath: string

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

Defined in

packages/repack/src/types.ts:152


sourcemapFilename

Optional sourcemapFilename: string

Source map filename - name under which generated Source Map will be saved. The output directory for the Source Map is the same as outputPath.

Defined in

packages/repack/src/types.ts:148