Plugin for loading and processing assets (images, audio, video etc) for React Native applications.
Assets processing in React Native differs from Web, Node.js or other targets. This plugin allows you to use assets in the same way as you would do when using Metro.
deprecated
Use dedicated rule with @callstack/repack/assets-loader
and AssetsResolverPlugin
.
More information can be found here: https://github.com/callstack/repack/pull/81
• new AssetsPlugin(config
)
Constructs new AssetsPlugin
.
Name | Type | Description |
---|---|---|
config |
AssetsPluginConfig |
Plugin configuration options. |
packages/repack/src/webpack/plugins/AssetsPlugin.ts:49
▸ apply(compiler
): void
Apply the plugin.
Name | Type | Description |
---|---|---|
compiler |
Compiler |
Webpack compiler instance. |
void