0
Welcome Guest! Login
0 items Join Now

LESS map files

    • Tims's Avatar
    • Tims
    • Newbie
    • Posts: 7
    • Thanks: 2

    LESS map files

    Posted 10 years 2 days ago
    • I am a fan of LESS and I think its inclusion in Gantry was a great move.

      Unfortunatly it seems that there are no map files created when the LESS files are compiled. This makes it quite difficult to debug LESS/css using a browser.

      The Less.php compiler that Gantry uses is able to produce map files (see http://lessphp.gpeasy.com/#source-maps ) so that browser debuggers can map the compiled css to the original LESS files and line numbers.

      It seems that Gantry does not support this. Is this correct? Is there any way to switch on map file creation? If not then are there any plans to implement this into the Gantry build?

      Any help/answers are greatly appreciated.
    • Last Edit: 10 years 2 days ago by Tims.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: LESS map files

    Posted 10 years 2 days ago
    • Tims's Avatar
    • Tims
    • Newbie
    • Posts: 7
    • Thanks: 2

    Re: LESS map files

    Posted 10 years 2 days ago
    • I have already turned on the debug headers - this is NOT what I was asking about.

      I am asking about source map files. These are either saved as seperate .map files or appended to the end of the generated css. Their purpose is to allow css debuggers such as chrome developer tools to map the generated css to the original LESS file and line number.

      As I said in my OP:
      The Less.php compiler that Gantry uses is able to produce map files (see lessphp.gpeasy.com/#source-maps ) so that browser debuggers can map the compiled css to the original LESS files and line numbers.

      It seems that Gantry does not support this. Is this correct?

      For a good example please see these screenshots (from robdodson.me and code.tutsplus.com ):

      This image is hidden for guests.
      Please log in or register to see it.


      This image is hidden for guests.
      Please log in or register to see it.
    • Last Edit: 10 years 2 days ago by Tims.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: LESS map files

    Posted 10 years 2 days ago
    • Tims wrote:
      The Less.php compiler that Gantry uses is able to produce map files (see http://lessphp.gpeasy.com/#source-maps ) so that browser debuggers can map the compiled css to the original LESS files and line numbers.

      Actually Gantry uses this compiler -> http://leafo.net/lessphp/ which unfortunately doesn't support source maps.
    • Tims's Avatar
    • Tims
    • Newbie
    • Posts: 7
    • Thanks: 2

    Re: LESS map files

    Posted 10 years 1 day ago
    • Thank you for the clarification.

      What a shame that source maps are not supported.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: LESS map files

    Posted 10 years 1 day ago
    • Tims wrote:
      Thank you for the clarification.

      What a shame that source maps are not supported.

      The best thing to do is put this in the REQUEST forum as the devs are looking at that all the time
      This image is hidden for guests.
      Please log in or register to see it.

Time to create page: 0.045 seconds