Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!