This topic contains 1 reply, has 2 voices, and was last updated by Hryhorii Hrebiniuk 5 years, 2 months ago.
- Topic
Good day. As the title says, i want to embed some custom JS files in my orocommerce app. I am reading docs and trying out things for several days now, but didn’t get it solved yet.
My requirejs.yml:
1234567891011build:paths:'tweenmax': 'empty:'config:build_path: 'testscript.min.js'shim:'tweenmax':exports: "TweenMax"paths:'stennotest/js/test.js': '/bundles/stennotest/js/test.js''tweenmax': 'https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.2/TweenMax.min.js'My test.js reads:
12345678require(["jquery", "tweenmax"], function($, TweenMax) {"use strict";console.log("Hello require");console.log($.fn.jquery);console.log("Hello TweenMax");console.log(new TweenMax.TweenMax());});My update.yml just contains a single instruction:
1234requirejs_scripts:blockType: requiresoptions:provider_alias: { '@value': 'oro_layout_requirejs_config_provider' }However, it does not work. I will not get ANY console log at all. I am trying for SEVERAL DAYS now to get this working. What did I do wrong? Where do i need to add or change something. WHERE is this documented?
With kind regards,
Christian
The forum ‘OroCommerce’ is closed to new topics and replies.