Example on How to create your own bundle.
Example
Try it out with your application!
// Import the bundle in your application's main.js.
import 'oskari-loader!oskari-frontend/packages/sample/bundle/mymodernbundle/bundle.js';
// Tweak the appSetup in your application's index.js / entry point.
// Add mymodernbundle to startupSequence.
jQuery(document).ready(function() {
function errorCb() { }
function successCb() { }
function modifyCb(appSetup) {
appSetup.startupSequence.push({ bundlename : 'mymodernbundle' });
}
Oskari.app.loadAppSetup(ajaxUrl + 'action_route=GetAppSetup', window.controlParams, errorCb, successCb, modifyCb);
});