assemble / assemble-less

Grunt task for compiling LESS to CSS. This task does for less what Assemble does for HTML, making it much easier to modularize and reduce repetition in stylesheets.
http://github.com/assemble/assemble/
MIT License
66 stars 20 forks source link

Source map mediaquery is not correct #6

Closed ruffle1986 closed 11 years ago

ruffle1986 commented 11 years ago

Hi!

Have you checked sass/less supporting mediaquery in compiled css files?

When I set dumpLineNumbers option to 'mediaquery' (without compressing of course), the mediaquery info doesn't show the correct line number of the less definition in the compiled css file but shows the line number that points to the compiled css which is useless while developing with less.

If I compile with lessc command from terminal, everything works fine!

Could you solve this problem because source map would be very useful.

Here's a repo you can check this issue: https://github.com/ruffle1986/less-workflow

just run 'npm install' and 'less:dev' task with grunt.

jonschlinkert commented 11 years ago

I'll take a look, thanks for pointing it out. If you want to do a pull request that would be good too

ruffle1986 commented 11 years ago

Not at all. Maybe, I'll do a pull request but I can't guarantee.