From: Aleksander Ɓukasz Date: Wed, 11 Dec 2013 16:21:13 +0000 (+0100) Subject: integration wip: use default value for baseUrl X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/2ffd7ab0bf214b5221d52e25ba081d944ba35843?ds=sidebyside;hp=5cd41e637e9c0d4e1b5d2e03a68ad8ad3ed6778f integration wip: use default value for baseUrl baseUrl defaults to entrypoint.js url so no need to set it explicitly. On top of that, setting it here would require hosting page to define global variable accessible from entrypoint.js to configure baseUrl value for a given environment which: - adds additional configuration step for hosting page, - breaks r.js optimizer as it requires call to requirejs.config to be parsable as JSON. --- diff --git a/src/editor/entrypoint.js b/src/editor/entrypoint.js index 528952b..c18bc5a 100644 --- a/src/editor/entrypoint.js +++ b/src/editor/entrypoint.js @@ -4,8 +4,6 @@ /* globals requirejs, editor_init */ requirejs.config({ - baseUrl: '/static/editor/src/editor', - paths: { 'fnpjs': '../fnpjs', 'libs': '../../libs',