Last modified: 2013-08-11 05:30:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48546, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46546 - Add support for pre-processing in debug mode
Add support for pre-processing in debug mode
Status: NEW
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.22.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 40964 46545
  Show dependency treegraph
 
Reported: 2013-03-25 19:23 UTC by Matthew Flaschen
Modified: 2013-08-11 05:30 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2013-03-25 19:23:52 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links