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}.
• context: string
Context in which all resolution happens. Usually it's project root directory.
packages/repack/src/types.ts:137
• dev: boolean
Inferred from mode. true
is mode
is development
.
packages/repack/src/types.ts:133
• Optional
devServer: DevServerOptions
Development server configuration options. Used by DevServerPlugin, BaseDevServer, DevServer and DevServerProxy.
If undefined
, then development server should not be run.
packages/repack/src/types.ts:159
• entry: string
Input filename - entry point of the bundle.
packages/repack/src/types.ts:139
• minimize: boolean
Whether to minimize the final bundle.
packages/repack/src/types.ts:150
• mode: "production"
| "development"
Compilation mode.
packages/repack/src/types.ts:131
• outputFilename: string
Bundle output filename - name under which built bundle will be saved.
packages/repack/src/types.ts:143
• outputPath: string
Bundle output path - directory where built bundle will be saved.
packages/repack/src/types.ts:141
• platform: string
Target application platform.
packages/repack/src/types.ts:135
• reactNativePath: string
Path to React Native dependency. Usually points to node_modules/react-native
.
packages/repack/src/types.ts:152
• 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.