How to generate LESS source maps without npm

I am now compiling LESS with lessc(version 1.7.0) ok, but when I add --source-map, I get

SyntaxError: Cannot find module 'source-map' in /home/me/my.css

I suspect this may be because I did not install LESS with npm. How can I get the source maps?


Requirement (sorry): this should be the full version in VCS, and not used npmfor installation.

+4
source share
1 answer

If you are not downloading the entire package, make sure you have the LESS libraries . When checking your repo, you can see the source maps listed there, so you may need these files.

: https://github.com/less/less.js/tree/9d3ef59cf818691cd52410879e7152e7d589de32/lib

, .

-2

Source: https://habr.com/ru/post/1538875/


All Articles