plugins.AssetsResolverPlugin
Plugin for resolving assets (images, audio, video etc) for React Native applications.
Assets processing in React Native differs from Web, Node.js or other targets.
This plugin in combination with @callstack/repack/assets-loader
allows
you to use assets in the same way as you would do when using Metro.
• new AssetsResolverPlugin(config
)
Constructs new AssetsResolverPlugin
.
Name | Type | Description |
---|---|---|
config |
AssetsResolverPluginConfig |
Plugin configuration options. |
packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetsResolverPlugin.ts:26
▸ apply(compiler
): void
Apply the plugin.
Name | Type | Description |
---|---|---|
compiler |
Compiler |
Webpack compiler instance. |
void
packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetsResolverPlugin.ts:37