https://bugzilla.wikimedia.org/show_bug.cgi?id=25362
Summary: Resource loader simple concatenation mode or minification options Product: MediaWiki Version: 1.16-svn Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: Normal Component: Resource Loader AssignedTo: tpars...@wikimedia.org ReportedBy: e...@wp.pl CC: roan.katt...@gmail.com Created attachment 7709 --> https://bugzilla.wikimedia.org/attachment.cgi?id=7709 Minified file is edit_calend.modules.mini.js, simple minification code is in JobSchEd.loader.php I might be wrong but currently I see no way to tweak the resource loader to my preferences (except for the debug mode). I would like to be able to use this kind of options (in Local Setting, but setting a user preference for this would also be nice for debugging): $wgRLRemoveVerticalWhiteSpace = true/false; $wgRLRemoveHorizontalWhiteSpace = true/false; $wgRLRemoveInlineComments = true/false; $wgRLRemoveMultiComments = true/false; Also when not removing horizontal whitespace (new lines) it would be nice to add comments marking end of multi-line comments (IIRC this was requested on wikitech-l). I have a simple working code for concatenation & adding comments that I'm attaching. Not sure if this will be useful, but have a look at parseMultiCom method of ecSimpleJSLoader. An example minified file also attached in the package. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l