I close a similiar thread yesterday. However, it remains a problem to me to define mapping in requirejs.yml:
I want to override following js-file:
by a custom one:
1) Creating requirejs.yml – filePHP12345678910111213## MyShoppingListBundle/Resources/views/layouts/custom/config/requirejs.yml#config:map:'*':'foo': 'foo1.2''some/oldmodule':'foo': 'foo1.0paths:'oroshoppinglist/js/app/views/product-add-to-shopping-list-view':... 'bundles/myshoppinglist/js/app/views/product-add-to-shopping-list-view.js'#
$ php ./bin/console oro:assets:install –env=dev –symlink
$ php ./bin/console oro:requirejs.build –env=dev
$ php ./bin/console cache:clear
I have totally no idea, what kind of mapping to set ‘foo’, ‘foo1.2’, ‘foo1.o’ for …
“When ‘some/newmodule’ does
require('foo')it will get the foo1.2.js file, and when ‘some/oldmodule’ does
require('foo')it will get the foo1.0.js file.”
But I do not know what are the right path’s I have to use in my example.
Could you be so kind, and give me a suggestion, what I have to put there?
Thank you very much!
You must be logged in to reply to this topic.