from pipeline.compressors import CompressorBase


class CssHtmlJsMinifyCompressor(CompressorBase):
    """
    CSS, HTML and JS compressor based on the Python library css-html-js-minify
    (https://pypi.org/project/css-html-js-minify/).
    """

    def compress_css(self, css):
        return css

        from css_html_js_minify import css_minify  # noqa: PLC0415

        return css_minify(css)

    def compress_js(self, js):
        return js

        from css_html_js_minify import js_minify  # noqa: PLC0415

        return js_minify(js)
