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

Created attachment 7709
Minified file is, simple minification code is in

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

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

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to