Manual:$wgResourceLoaderLESSImportPaths

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Resource Loader: $wgResourceLoaderLESSImportPaths
Default import paths for LESS modules.
Introduced in version: 1.22.0
Removed in version: still in use
Allowed values: array
Default value: $IP/resources/src/mediawiki.less/
Other settings: Alphabetical | By function

Details[edit]

Default import paths for LESS modules. LESS files referenced in @import statements will be looked up here first, and relative to the importing file second. To avoid collisions, it's important for the LESS files in these directories to have a common, predictable file name prefix.

Extensions need not (and should not) register paths in $wgResourceLoaderLESSImportPaths. The import path includes the path of the currently compiling LESS file, which allows each extension to freely import files from its own tree.