0

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?

Faisal Sheikh
1,3901 gold badge9 silver badges18 bronze badges
asked Aug 9, 2019 at 6:35

1 Answer 1

0

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

app/design/frontend/[vendor]/[theme]/Magento_Theme/web/js/

Run bin/magento s:s:d

It'll work for you.

answered Aug 9, 2019 at 6:41
1
  • Cheers!!! Have a great day! Commented Aug 9, 2019 at 12:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.