Magento 2
How to get the RequireJS base URL (the root URL for Magento 2 static files for a browser) with JavaScript?
Development
base-url
,
requirejs
,
javascript
dmitrii_fediuk
(Dmitrii Fediuk)
November 30, 2016, 5:45am
1
Way 1
require.toUrl('')
Way 2
requirejs.s.contexts._.config.baseUrl
1 Like
How to get the current design package and theme names programmatically on the browser side (with JavaScript)?