Languages

lessc - Compress css error - Unable to load plugin clean-css please make sure that it is installed under or at the same level as less

4 points
Asked by:
Bartek
2120

I try to compress css files with lessc command.

I get this error:

$ lessc loading.css --clean-css="--s1 --advanced --compatibility=ie8" > output_file.min.css
Unable to load plugin clean-css please make sure that it is installed under or at the same level as less

How can I fix it?

1 answer
6 points
Answered by:
Bartek
2120

As I see, less is installed, but lessc not. You need to install less-plugin-clean-css.

So, run the command:

npm install -g less-plugin-clean-css

 

See also

  1. LESS / CSS - minify css file

Referneces

  1. less-plugin-clean-css - NPM Homepage

1 comments
Root-ssh
https://dirask.com/questions/1Rvxd1 - same problem described here
Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join