This topic contains 3 replies, has 3 voices, and was last updated by onechyporenko 6 years, 6 months ago.
- Topic
I am trying to add my own js using requirjs, i did the following steps:
I created inside myBundle/Resources/config/requirejs.yml file set the following options:
config:
shim:
‘jquery-ui’:
deps:
– ‘jquery’
‘underscore’:
exports: ‘_’
‘backbone’:
deps:
– ‘underscore’
– ‘jquery’
exports: ‘Backbone’
paths:
‘jquery’: ‘../js/layout/my_theme/js/jquery-3.2.1.min.js’
‘jquery-ui’: ‘bundles/oroui/lib/jquery-ui.js’
‘bootstrap’: ‘bundles/oroui/lib/bootstrap.js’
‘../js/layout/my_theme/js/scripts.js’: ‘../js/layout/my_theme/js/scripts.js’and run this command: php app/console oro:requirejs:build
and the build command create oro.min.js inside my theme folder and i included this fild inside my theme but i can not see my js functions in oro.min.js file.
what am i missing?
arh922
The forum ‘OroCommerce’ is closed to new topics and replies.