Skip to content

Source map option not working #6

Closed
@bdgeorge

Description

@bdgeorge

I'm finding that the --source-map option doesn't work, I'm getting the following error:

Error setting options on plugin less-plugin-clean-css
unrecognised clean-css option '--source-map'
Unable to interpret argument clean-css - if it is a plugin (less-plugin-clean-css), make sure that it is     installed under or at the same level as less

This is after doing npm install -g less then npm install -g less-plugin-clean-css

If I install clean-css and run that alone it works as expected, so cleancss tmp.css --source-map --output tmp.min.css generates a cleaned file and the map.
However running lessc tmp.less tmp.css --clean-css="--source-map --output tmp.min.css" results in the error code given above.

Other options, eg lessc tmp.less tmp.css --clean-css="--s1" work fine.

I'm using [email protected] and [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions