Skip to content

Can't compile .less with last Rhino (v.1_7R4) and less-rhino-1.7.0.js #2043

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

Closed
barong opened this issue Jun 3, 2014 · 3 comments
Closed

Comments

@barong
Copy link

barong commented Jun 3, 2014

Hi,
I'm trying to compile less with rhino v.1_7R4 js.jar and less-rhino-1.7.0.js.
Also I want to generate source-map.
There is my try with it:

java -jar js.jar less-rhino-1.7.0.js app.less app.css

This code doesn't generate app.css for me and don't give any output.
If I use less-rhino-1.5.1.js, then I can get my app.css
But if I try to generate source-map file with it, then I get error

java -jar js.jar less-rhino-1.5.1.js --source-map app.less app.css

output: SyntaxError: Cannot find module 'source-map' in app.less on line null, column 0:

Could you please give me advise with it. How I can get both generated app.css and app.css.map?

java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Thank you!

@SomMeri
Copy link
Member

SomMeri commented Jun 3, 2014

There are two files now:

You need both of them in the above order. Command to run the compiler:

java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js app.less app.css

Related documentation issue: less/less-docs#178

@SomMeri
Copy link
Member

SomMeri commented Jun 3, 2014

I closed this, but then found out that the option you are using --source-map does not work in rhino. I opened new issue for it #2044, to give that problem special title.

@barong
Copy link
Author

barong commented Jun 3, 2014

Thank you so much for your response, SomMeri!
I spent all day in reading documentations, but it was not enough =)
I will try with another versions of Rhino, coz I anyway need source-map file.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants