0

How to generate source map file for less files ? I tried official manual. But the commands are not working

Nurbek Nurjanov
  • 101
  • 1
  • 4
  • Please consider https://stackoverflow.com/help/how-to-ask. I.e. try to describe in details what you did exactly and how exactly you decided it's not working. Qs having nothing but "Something is not working" require a telepathy skills vastly narrowing an amount of people able to answer. – seven-phases-max Feb 20 '19 at 11:40
  • On offfical manual it says: lessc --source-map { sourceMap: {} } I did write this command, but response says lessc: ENOENT: no such file or directory, open '/var/www/razlet/css/--source-map{' I dont know, why map file is not generated, why I see this error – Nurbek Nurjanov Feb 20 '19 at 12:42
  • `lessc --source-map { sourceMap: {} }` - mm, no, I'm afraid it's the docs formatting confused you. `lessc --source-map` and `{ sourceMap: {} }` are two different examples (the left is command line format, the right is JavaScript API). – seven-phases-max Feb 21 '19 at 01:13
  • Possible duplicate of [Compile LESS files with source maps](https://stackoverflow.com/questions/20979732/compile-less-files-with-source-maps) – henry Feb 24 '19 at 21:17

0 Answers0