Skip to content

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

Closed

Description

@barong

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!

Activity

  1. SomMeri commented on Jun 3, 2014

    @SomMeri
    Member

    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

  2. SomMeri commented on Jun 3, 2014

    @SomMeri
    Member

    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.

  3. barong commented on Jun 3, 2014

    @barong
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions