This topic contains 2 replies, has 1 voice, and was last updated by Frank 3 years, 9 months ago.
-
Topic
-
Hi there,
I close a similiar thread yesterday. However, it remains a problem to me to define mapping in requirejs.yml:
Goal:
—
I want to override following js-file:OroShoppingListBundle/Resources/public/js/app/views/product-add-to-shopping-list-view.js
by a custom one:
MyShoppingListBundle/Resources/public/js/app/views/product-add-to-shopping-list-view.jsMy Steps:
—1) Creating requirejs.yml – file
12345678910111213## 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'#2.
$ php ./bin/console oro:assets:install –env=dev –symlink
$ php ./bin/console oro:requirejs.build –env=dev
$ php ./bin/console cache:clearProblem:
—
I have totally no idea, what kind of mapping to set ‘foo’, ‘foo1.2’, ‘foo1.o’ for …requirejs.org says:
“When ‘some/newmodule’ does
require('foo')
it will get the foo1.2.js file, and when ‘some/oldmodule’ doesrequire('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!
Frank
The forum ‘OroPlatform’ is closed to new topics and replies.