You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #103 Allow to disable the default image and font loaders (Lyrkan)
This PR was squashed before being merged into the master branch (closes#103).
Discussion
----------
Allow to disable the default image and font loaders
This PR adds a `disableAssetsLoaders` method to the API, allowing users to disable the default image and font loaders.
Currently these two loaders are always added (with some parts of them being hardcoded) and can't really be overriden which can causes some issues (see #73).
By allowing to disable this behavior, users would be able to replace them by their own loaders.
About the new method:
* **Why a `disableAssetsLoaders` and not an `enableAssetsLoaders` instead**: I still think that these two loaders should be added by default since almost every project will need them. Moreover, keeping them enabled will avoid breaking BC.
* **Why a single method instead of one for the image loader and one for the fonts loader**: I may be wrong there, but I think that if an user disable one of them, it'll probably disable the other one aswell anyway.
Commits
-------
aeb4a95 Allow to disable the default image and font loaders
0 commit comments