Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

208
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda