-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Compiling empty less file causes the map to contain string "undefined" #2430
Labels
Comments
This was referenced Feb 2, 2015
Merged
Looks like there is a regression in 2.5.0.
|
SomMeri
pushed a commit
to SomMeri/less-rhino.js
that referenced
this issue
Jul 17, 2015
This was referenced Aug 13, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following:
lessc empty.less --source-map=test.map out.css
where "empty.less" is, well, empty (0 bytes) causes test.map to have following content:
Same happens if "empty.less" produces no css, e.g. has only variable definitions.
Possibly related: #1491 and gulp-community/gulp-less#121 - very strange error that comes from following line:
return new Buffer(str).toString('base64')
from
lib/less-node/environment.js
When
str === undefined
new Buffer throws. At first glance seems that the reason str is undefined is the same as that "undefined" gets written to map file.Less version: less@2.3.1
The text was updated successfully, but these errors were encountered: