l.s.u.j.j.CSSComboFile(ComboFile) : class documentation

Part of lp.scripts.utilities.js.jsbuild View In Hierarchy

FileCombiner for CSS files.

It uses the cssutils.CSSParser to convert all url() instances to the new location, and minify the result.

Method __init__ Undocumented
Method get_comment Return a string wrapped in a comment to be include in the output.
Method get_file_header Return a string to include before outputting a file.
Method filter_file_content URLs are made relative to the target and the CSS is minified.

Inherited from ComboFile:

Method needs_update Return True when the file needs to be updated.
Method log Undocumented
Method update Update the file from its source files.
def __init__(self, src_files, target_file, resource_prefix='', minify=True, rewrite_urls=True):
Undocumented
def get_comment(self, msg):
Return a string wrapped in a comment to be include in the output.

Can be used to help annotate the output file.

def get_file_header(self, path):
Return a string to include before outputting a file.

Can be used by subclasses to output a file reference in the combined file. Default implementation returns nothing.

def filter_file_content(self, file_content, path):
URLs are made relative to the target and the CSS is minified.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.