Skip to content

lessc with multiple plugins #3187

@NaNDoon

Description

@NaNDoon

Trying to run lessc with two plugins -- clean-css and autoprefixer. One out of every 5-6 times I execute the compiler like so:

lessc --plugin=clean-css="level=1" --plugin=autoprefix="ie 11,Edge >= 13,Chrome >= 47,Firefox >= 45,iOS >= 9.2,Safari >= 9" input.less output.css

I get this message:

undefinedError: Error setting options on plugin index.js
unrecognised clean-css option 'ie'

It appears that clean-css is trying to read the parameters of autoprefixer. When I reverse the order I get a similar error from autoprefixer. I've tried using --autoprefix and --clean-css directly instead of --plugin to no avail. Is there some kind of trick to preventing the either plugin from being "greedy" and reading each other's parameters? Is this a plugin-specific issue?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions