Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

302
Vistas
How to find unused images in public folder in react app

i have a big project with a lot of images in the public folder of react app, is there a way to find all the unused images and clean them up ?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This is a common issue and this question led to me to search for answers. I stumbled upon this video which helped to partly resolve the issue.

The problem here is that, the plugin used in the video unused-files-webpack-plugin does not support Webpack 5. An issue was raised to update the plugin to support Webpack 5 but the author of the package hasn't issued an update.

A similar package that can be used is the webpack-deadcode-plugin. You can use the implementation from the video and substitute the unused-files-webpack-plugin with the webpack-deadcode-plugin making a few changes (such as to the patterns property which you would have to change to something like: patterns: ['src/**/*.(png|jpg|jpeg)'] for your use case) to adapt the new plugin.

Edit: This answer assumes you are using webpack as your bundler.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda