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.
/* from http://lesscss.org/#overview */
@width: 10px;
@height: @width + 10px;

#header {
  width: @width;
  height: @height;
}

Attachment: signature.asc
Description: PGP signature

Reply via email to