Hi Debajit, xwiki-min.js is not just a minified version of xwiki.js, it also "bundles" a couple of JavaScript files that are needed on most of the pages. See https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... . We did this in order to reduce the number of JavaScript files loaded on every page. So xwiki-min.js is created at build time. You can obtain it yourself by building xwiki-platform-web. For development it's easier if you use debug=true in the page URL query string which will load the individual files instead of xwiki-min.js. This allows you to overwrite such a file with the unminified version and to quickly test the changes or debug them if you want. Now, unless there's really no other way (e.g. using JavaScript Skin Extensions), modifying the resources from the XWiki WAR is not recommended because it complicates the upgrade. Hope this helps, Marius On Fri, Mar 11, 2016 at 6:00 AM, Debajit Work <[email protected]> wrote:
Hi
I am making a small change to the UI for the search suggestions, for which I need to update or override xwiki-min.js
I would like to understand — how is xwiki.js minified to xwiki-min.js? It looks to me like this is done statically (I went through the Skin extension documentation < http://extensions.xwiki.org/xwiki/bin/view/Extension/Skin+Extension+Plugin
, but when exactly the minification happens is still unclear to me)
If I want to update xwiki.js or xwiki-min.js, what is the best way to do it? Previously I was adding another JS file called xwiki_overrides.js and including that in "javascript.vm" which added additional listeners, but I that is not very efficient for my current needs. Any pointers are welcome.
Thanks in advance Debajit _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users