EN
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
1
answers
4
points
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
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
More detailed description you can find:
- in the article: https://dirask.com/posts/LESS-CSS-minify-css-file-1e9rb1
- on official npm page: https://www.npmjs.com/package/less-plugin-clean-css
0 comments
Add comment