[Pkg-javascript-devel] Bug#977974: node-less: `lessc --clean-css` doesn't minify

Guilhem Moulin guilhem at debian.org
Wed Dec 23 16:39:44 GMT 2020


Package: node-less
Version: 3.13.0+dfsg-2
Severity: normal

Dear Maintainer,

Running `apt install node-less node-clean-css` in a clean sid chroot I'm
unable to make lessc produce minified output.  I don't know if
`--clean-css` does any “cleaning” or if it's a no-op.

    $ lessc --clean-css /tmp/example.less
    /* from http://lesscss.org/#overview */
    #header {
      width: 10px;
      height: 20px;
    }

    $ lessc /tmp/example.less
    /* from http://lesscss.org/#overview */
    #header {
      width: 10px;
      height: 20px;
    }

It does minify if I pass `--compress`, however that flag is currently
deprecated.

    $ lessc --compress /tmp/example.less
    The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.
    #header{width:10px;height:20px}

The plugin appears to load, but I can't pass any parameters:

    $ lessc --plugin=nonexistent /tmp/example.less
    Unable to load plugin nonexistent please make sure that it is installed under or at the same level as less

    $ lessc --plugin=clean-css /tmp/example.less
    /* from http://lesscss.org/#overview */
    #header {
      width: 10px;
      height: 20px;
    }

    $ lessc --plugin=clean-css="advanced" /tmp/example.less
    undefinedError: Options have been provided but the plugin index.js does not support any options.

Thanks,
-- 
Guilhem.
-------------- next part --------------
/* from http://lesscss.org/#overview */
@width: 10px;
@height: @width + 10px;

#header {
  width: @width;
  height: @height;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20201223/8b4c6000/attachment.sig>


More information about the Pkg-javascript-devel mailing list