Skip to main content
Version: 2x

Interface: AssetsPluginConfig

AssetsPlugin configuration options.

Hierarchy

  • AssetResolverConfig

    AssetsPluginConfig

Table of contents

Properties

Properties

configureLoader

Optional configureLoader: boolean

Whether AssetsPlugin should configure asset loader automatically.

Set to false if you want to configure it manually, for example if you are using @svgr/webpack.

Defined in

packages/repack/src/webpack/plugins/AssetsPlugin.ts:28


devServerEnabled

Optional devServerEnabled: boolean

Whether the development server is enabled.

Defined in

packages/repack/src/webpack/plugins/AssetsPlugin.ts:20


extensions

Optional extensions: string[]

Override default asset extensions. If the asset matches one of the extensions, it will be process by the custom React Native asset resolver. Otherwise, the resolution will process normally and the asset will be handled by Webpack.

Inherited from

AssetResolverConfig.extensions

Defined in

packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetResolver.ts:16


platform

platform: string

Target application platform.

Inherited from

AssetResolverConfig.platform

Defined in

packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetResolver.ts:25


scalableExtensions

Optional scalableExtensions: string[]

Override default scalable extensions, which processes only scalable assets like images to create a map of DPI variants of the asset.

Inherited from

AssetResolverConfig.scalableExtensions

Defined in

packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetResolver.ts:22