AssetsPlugin configuration options.
AssetResolverConfig
↳ AssetsPluginConfig
• 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
.
packages/repack/src/webpack/plugins/AssetsPlugin.ts:28
• Optional
devServerEnabled: boolean
Whether the development server is enabled.
packages/repack/src/webpack/plugins/AssetsPlugin.ts:20
• 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.
AssetResolverConfig.extensions
packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetResolver.ts:16
• platform: string
Target application platform.
AssetResolverConfig.platform
packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetResolver.ts:25
• Optional
scalableExtensions: string
[]
Override default scalable extensions, which processes only scalable assets like images to create a map of DPI variants of the asset.
AssetResolverConfig.scalableExtensions
packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetResolver.ts:22