{"action":"created","issue":{"url":"https://api.github.com/repos/linev/jsroot/issues/10","labels_url":"https://api.github.com/repos/linev/jsroot/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/linev/jsroot/issues/10/comments","events_url":"https://api.github.com/repos/linev/jsroot/issues/10/events","html_url":"https://github.com/linev/jsroot/issues/10","id":112159905,"number":10,"title":"require.js","user":{"login":"asseldonk","id":6368986,"avatar_url":"https://avatars.githubusercontent.com/u/6368986?v=3","gravatar_id":"","url":"https://api.github.com/users/asseldonk","html_url":"https://github.com/asseldonk","followers_url":"https://api.github.com/users/asseldonk/followers","following_url":"https://api.github.com/users/asseldonk/following{/other_user}","gists_url":"https://api.github.com/users/asseldonk/gists{/gist_id}","starred_url":"https://api.github.com/users/asseldonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asseldonk/subscriptions","organizations_url":"https://api.github.com/users/asseldonk/orgs","repos_url":"https://api.github.com/users/asseldonk/repos","events_url":"https://api.github.com/users/asseldonk/events{/privacy}","received_events_url":"https://api.github.com/users/asseldonk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T14:43:17Z","updated_at":"2015-10-19T14:47:17Z","closed_at":null,"body":"In JSRootCore.js\r\n```javascript\r\n      // first configure all dependencies\r\n      requirejs.config({\r\n       baseUrl: dir,\r\n       paths: {\r\n          'd3'              : 'd3.v3.min',\r\n          'helvetiker_bold' : 'helvetiker_bold.typeface',\r\n          'jquery'          : 'jquery.min',\r\n          'jquery-ui'       : 'jquery-ui.min',\r\n          'touch-punch'     : 'touch-punch.min',\r\n          'MathJax'         : 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG&amp;delayStartupUntil=configured',\r\n          'THREE'           : 'helvetiker_regular.typeface'\r\n       },\r\n```\r\n can you use baseUrl with 'context' like this:\r\n\r\n````javascript\r\nvar reqOne = require.config({\r\n  context: \"version1\",\r\n  baseUrl: \"version1\"\r\n});\r\n```\r\n\r\n(see: http://requirejs.org/docs/api.html#multiversion). When using only 'baseUrl' without 'context', it would overwrite and destroy any other configurations. With the 'context' option, jsroot would be more plugin-like."},"comment":{"url":"https://api.github.com/repos/linev/jsroot/issues/comments/149237219","html_url":"https://github.com/linev/jsroot/issues/10#issuecomment-149237219","issue_url":"https://api.github.com/repos/linev/jsroot/issues/10","id":149237219,"user":{"login":"linev","id":4936580,"avatar_url":"https://avatars.githubusercontent.com/u/4936580?v=3","gravatar_id":"","url":"https://api.github.com/users/linev","html_url":"https://github.com/linev","followers_url":"https://api.github.com/users/linev/followers","following_url":"https://api.github.com/users/linev/following{/other_user}","gists_url":"https://api.github.com/users/linev/gists{/gist_id}","starred_url":"https://api.github.com/users/linev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linev/subscriptions","organizations_url":"https://api.github.com/users/linev/orgs","repos_url":"https://api.github.com/users/linev/repos","events_url":"https://api.github.com/users/linev/events{/privacy}","received_events_url":"https://api.github.com/users/linev/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T14:47:17Z","updated_at":"2015-10-19T14:47:17Z","body":"Hi\r\n\r\nYou mean I should provide code like:\r\n\r\n     requirejs.config({\r\n       context: dir,\r\n       baseUrl: dir,\r\n       paths: {\r\n\r\nOr you prefer to use actual JSROOT version like:\r\n\r\n     requirejs.config({\r\n       context: \"3.8\",\r\n       baseUrl: dir,\r\n       paths: {\r\n"}}