I need to override vendor/magento/theme-frontend-blank/Magento_Theme/web/js/theme.js to my custom theme in app/design/frontend/[vendor]/[theme]/

I found that I need to do it through requirejs-config.js with map but I didn't find the way to do it.

Where should I create the requirejs-config.js and what I have to write in it?


You can copy the theme.js file to the below path


Run bin/magento s:s:d

It'll work for you.

  • It works thank you very much – axel Aug 9 at 12:15
  • Cheers!!! Have a great day! – Sumit Aug 9 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.