https://bugzilla.wikimedia.org/show_bug.cgi?id=46546

       Web browser: ---
            Bug ID: 46546
           Summary: Add support for pre-processing in debug mode
           Product: MediaWiki
           Version: 1.21-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: ResourceLoader
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

To support languages like SASS and LESS (and possibly similar ones for
JavaScript), implement a optional compilation step for debug mode.  This would
compile to the browser language (e.g. CSS) without minification.

This would be similar to the existing ResourceLoader::filter, but apply in
debug mode.  It might make sense to use some kind of OOP approach with e.g. a
ResourceLoaderLanguage class with getProductionCode and getDebugCode methods
(the latter of which would be trivial for actual CSS and JS).  That could
handle the existing filters and this new pre-processing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to