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

210
Vistas
react js override webpack config for javascript & css bundle with craco

i have a react application for which i want to modify the javascript and css bundles

which are building by the webpack every time the App is build to avoid the browser caching issue
for example right now it is like that

chunkFilename: 'static/css/[name].[contenthash:8].chunk.css'

i want to modify it to

chunkFilename: 'static/css/[name].[contenthash:8].' + Date.now().toString() + '.chunk.css'

for this i have to modify webpack default config

but also dont want to eject in my app thats why i am thinking of using craco for that

the same way i need to modify JavaScript bundles

chunkFilename: isEnvProduction
                ? 'static/js/[name].[contenthash:8].chunk.' + Date.now().toString() + '.js'
                : isEnvDevelopment && 'static/js/[name].chunk.js'

how can i do that , i could not find any documentation regarding this

about 4 years ago · Santiago Gelvez
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