Added
- Added an optional
fallbackTransformer
parameter toLoaderConfig
. Set topureTransformer
by default, this option lets you choose which transformer the loader will fall back to if your custom transformer fails or if the content type is not supported. - Added an optional
skipFormats
parameter toLoaderConfig
. This is a set of mime types that should be returned without transformation. Defaults toSet([MimeType.SVG])
.
Changed
- Made
null
a valid option for thetransformer
parameter ofLoaderConfig
. If this parameter is set to null, image transformation will be skipped.
Docs
- Added documentation for
LoaderConfig
parameters:defaultOptions
,redirectOnFail
, andskipFormats
. - Added default (
pureTransformer
) supported file types to documentation.