lessphp
lessphp copied to clipboard
Source-Map Support
It would be nice to get support for source maps, which simplifies the debugging of less code.
lessc adds support for source maps starting from 1.4.0 (...here's the issue: https://github.com/less/less.js/issues/1050)
The documentation of the source map proposal v3 could be found here: https://docs.google.com/a/google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
+1
+1
+1
+1
+1
+100500
+1
This would be a nice feature. https://github.com/oyejorge/less.php Already has support for source maps.
+1
This project is dead, use this https://github.com/oyejorge/less.php
So here is my gist: https://gist.github.com/dstorozhuk/e90e6b151129f5bb9d20e871e0137d38
The code extends the Leafo\ScssPhp\Server. The most important methods for generating maps is CssServer::compile() and CssServer::generateMap().
@dstorozhuk What prevents to use 8 lines instead of the whole class? https://github.com/oyejorge/less.php#source-maps What prevents to use ready-made integration with Drupal? https://www.drupal.org/project/less
Oh, sorry again wrong repo ))) I mixed up with https://github.com/leafo/scssphp.