Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Could we add the ability for the module to create source maps we can map too for ease of debugging?
http://code.tutsplus.com/tutorials/working-with-less-and-the-chrome-devt...
Comments
Comment #1
Ghostthinker CreditAttribution: Ghostthinker commentedsee https://drupal.org/comment/8687887#comment-8687887 for a solution, but it requires lessjs/node to be installed
Comment #2
corey.aufang CreditAttribution: corey.aufang commentedAs far as I'm aware, source maps are not available currently with leafo/lessphp, which is the current compiler this module is built around.
Source maps will be available when the following tickets land:
Comment #4
corey.aufang CreditAttribution: corey.aufang commentedI have source map support mostly funcitonal.
"less.js" version I think is completely functional.
To ensure that source maps work even with files added through import paths, the entire source .less file has to be embedded in the source map.
This is going to drastically inflate the size of compiled files when in development mode.
For "oyejorge/less.php" there are two issues that are blocking:
https://github.com/oyejorge/less.php/issues/127
https://github.com/oyejorge/less.php/issues/128
Comment #7
corey.aufang CreditAttribution: corey.aufang commentedGot this working without needing the full source file to be added.
Any feedback would be appreciated.
Comment #8
ckngSource mapping for oyejorge/less.php
- latest master branch is working correctly
- 1.7.0.2 not working as reported in #2203549-2: Source Map support
Comment #9
corey.aufang CreditAttribution: corey.aufang commentedPlease try the latest 7.x-4.x-dev.
There have been many changes that should help reduce inconsistencies between engines, including support for source maps.
Comment #10
corey.aufang CreditAttribution: corey.aufang commentedMarking this as fixed as 7.x-4.0 will be released soon.
If you are having any issues with source maps in 7.x-4.x prior to the release of 7.x-4.0, please re-open this ticket.
Comment #12
apaderno