Home > @lynx-js/rspeedy > Source > assetsInclude
Include additional files that should be treated as static assets. Defaults to be undefined
.
Signature:
By default, Rsbuild treats common image, font, audio, and video files as static assets. Through the source.assetsInclude config, you can specify additional file types that should be treated as static assets. These added static assets are processed using the same rules as the built-in supported static assets。
The usage of source.assetsInclude
is consistent with Condition in Rspack, which supports passing in strings, regular expressions, arrays of conditions, or logical conditions to match the module path or assets.