lessphp icon indicating copy to clipboard operation
lessphp copied to clipboard

Source-Map Support

Open klarstil opened this issue 11 years ago • 13 comments

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#

klarstil avatar Jan 24 '14 12:01 klarstil

+1

Phil23 avatar Jan 29 '14 08:01 Phil23

+1

PaddyS avatar Jan 29 '14 08:01 PaddyS

+1

and-wolf avatar Jan 29 '14 08:01 and-wolf

+1

tiagojsag avatar Jan 29 '14 08:01 tiagojsag

+1

FMCorz avatar Feb 21 '14 03:02 FMCorz

+100500

pafnuty avatar Feb 21 '14 05:02 pafnuty

+1

TimSwiss avatar Apr 24 '14 23:04 TimSwiss

This would be a nice feature. https://github.com/oyejorge/less.php Already has support for source maps.

BradCrumb avatar May 07 '14 06:05 BradCrumb

+1

rickdmer avatar Jun 17 '16 20:06 rickdmer

This project is dead, use this https://github.com/oyejorge/less.php

pafnuty avatar Jun 17 '16 20:06 pafnuty

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 avatar Feb 28 '17 07:02 dstorozhuk

@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

pafnuty avatar Feb 28 '17 07:02 pafnuty

Oh, sorry again wrong repo ))) I mixed up with https://github.com/leafo/scssphp.

dstorozhuk avatar Feb 28 '17 07:02 dstorozhuk