Skip to content

goxr3plus/expo-unused-assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

expo-unused-assets

Check react native expo project for unused assets

How to run: node unusedAssets.js

I created this because inside the expo assets folder i have lots of images or lottie json files which i forget to delete and for my surprise after running this code i found 8 Mb of unused images and Lottie Json.

image

You need to have Node.js installed in your computer ( i tested with node 18.0.0)

It scans the assets folder for images or lottie files that are not being ( imported or require('...') ) inside the .js files in the src folder . If it finds it asks you if you want to delete them .


Examples screenshots :

No unused assets found

image

Some unused assets found

image

About

Check react native expo project for unused assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors