Skip to content

Rhino version does not create source map file #2044

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

Open
SomMeri opened this issue Jun 3, 2014 · 1 comment
Open

Rhino version does not create source map file #2044

SomMeri opened this issue Jun 3, 2014 · 1 comment

Comments

@SomMeri
Copy link
Member

SomMeri commented Jun 3, 2014

This is related to #2043. I used command:

java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js --source-map less.less less.css

This is how less.less looks like:

.test {
  demo: value;
}

Source map file was not created.

Note 1: The --source-map option is not ignored by rhino, because following:

java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js --source-map less.less

returns expected error:

output: undefined
the sourcemap option only has an optional filename if the css filename is given

Note 2: the same file compiled under node.js generated source map file:

{"version":3,"file":"less.css","sources":["less.less"],"names":[],"mappings":"AAAA;EACE,WAAA"}
@barong
Copy link

barong commented Jun 3, 2014

Totally I got my map file by using this command:

java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js --source-map --source-map-output-map-file=app.css.map app.less app.css

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

No branches or pull requests

3 participants