djblets.pipeline.compilers.less¶
A specialization of pipeline’s LessCompiler.
- class LessCompiler(verbose, storage)[source]¶
Bases:
LessCompiler
A LESS compiler which doesn’t redirect the output.
Pipeline’s LESS compiler outputs to stdout and redirects that output to the target file, because of some bug in old versions of lessc. We don’t want to do that, because it interferes with the generation of sourcemaps.
To use this, add the path to this class to
settings.PIPELINE['COMPILERS']
.Changed in version 2.2: Added in-memory caching of import lists and file information to speed up performance of compilations.
- is_outdated(infile, outfile)[source]¶
Return whether a given file is outdated.
This will compare the timestamps of the
infile
andoutfile
, but also compare the timestamp ofoutfile
against any import depedencies that exist.
- __annotations__ = {}¶