Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean-css not found if lessc is executed from a sub directory #23

Closed
srittau opened this issue Feb 21, 2018 · 3 comments
Closed

clean-css not found if lessc is executed from a sub directory #23

srittau opened this issue Feb 21, 2018 · 3 comments
Labels

Comments

@srittau
Copy link

srittau commented Feb 21, 2018

Since upgrading less from 2.7.3 to 3.0.1, --clean-css does not work anymore when less is executed from a sub directory:

srittau@moby:~$ mkdir clean-css-test && cd clean-css-test/
srittau@moby:~/clean-css-test$ npm install less less-plugin-clean-css
[...]

+ [email protected]
+ [email protected]
added 72 packages in 3.38s
srittau@moby:~/clean-css-test$ touch foo.less
srittau@moby:~/clean-css-test$ ./node_modules/less/bin/lessc --clean-css foo.less 
srittau@moby:~/clean-css-test$ mkdir subdir && cd subdir
srittau@moby:~/clean-css-test/subdir$ ../node_modules/less/bin/lessc --clean-css foo.less 
Unable to load plugin clean-css please make sure that it is installed under or at the same level as less
@seven-phases-max
Copy link
Member

seven-phases-max commented Feb 27, 2018

Closing in favour of less/less.js#3181.

@phxuecan
Copy link

phxuecan commented Apr 6, 2018

thanks, but 3.0.1 still can't work, do you have resolved?

@seven-phases-max
Copy link
Member

seven-phases-max commented Apr 6, 2018

@phxuecan 3.0.1 is what has this bug (please read the initial post carefully).

coakenfold added a commit to coakenfold/TimelineJS3 that referenced this issue Apr 9, 2018
`Unable to load plugin clean-css please make sure that it is installed under or at the same level as less
Fatal error: Error running lessc on ...`

Downgraded Less:
    less/less-plugin-clean-css#23
    less/less.js#3181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants