Closed shannonmoeller closed 9 years ago
@shannonmoeller please correct me if I'm wrong but source maps are for CSS preprocessors only. And apparently clean-css makes smaller CSS from… larger CSS!
Source maps are for any JS or CSS files that are compiled from other source files. Because clean-css inlines @imports and modifies code to make it smaller than the source files, it qualifies! Consider your JS sister, uglifyjs. It only makes smaller JS files from larger JS files, and it supports generating source maps too!
Ah, sneaky @import
s! Challenge accepted :-)
+1 Any news?
@Kienz we have some other tasks in the pipeline but we won't leave it unanswered. The more +1's the quicker we get into it.
+1 This will be one of the most useful feature.
+1, we'd prefer to use --clean-css
from grunt less task, as it gives better results than --compress
, but we need the source maps
@iki @sbspk looks like we need to push it higher on the priorities list. Could be 2.1
then.
@GoalSmashers sounds great, count me in for testing if needed
@GoalSmashers sounds awesome :thumbsup: .
@iki @sbspk thanks, will do!
When doing it please could you consider allowing passing in a source sourcemap as well? Uglifjs also allows this and I think If you use mozillas sourcemap library (on node) then it allows integrating it. I implemented css sourcemap support for less and it would be great to allow less to use clean css to compress the css and transform the sourcemap too.
@lukeapage You stole the words out of my mouth :D +1 for the suggestion.
@lukeapage @sbspk Sure, I'll take a look into it!
+1
+1 Really nice feature! :)
Looking forward to this an willing to help test out in any way I can.
:+1:
I'm not sure how this can be done without an AST (and clean-css
doesn't create one). Any thoughts @GoalSmashers?
LESS does create a source map, so it might be worth looking at what they're doing for compressing.
@OliverJAsh I've been thinking a lot about it and we may need an AST-like structure to add source maps but there could be another option as well. Need to play a bit more with it to see what fits the best.
+1
+1
+1 This feature would be sooooo useful!
+1
+1
+1
+1
+1 for sourcemaps out +1 for sourcemaps in
+1
+1
:+1:
+1
Throwing in my :+1: in support of this. :)
+1
+1
+1
+1
+1 for use with cssmin (https://github.com/gruntjs/grunt-contrib-cssmin/issues/58)
To give you all a short update, the work on source maps is slowly progressing and it should be available for testing in the coming weeks.
I'll likely make 2.3
release solely for source maps as other updates waiting for 2.2
are unnecessarily collecting the dust.
Stay tuned!
Nice news. Keep up the good work!
Great news, looking forward to it! Cheers
Thanks for the future feature, big :+1:!
+1
:+1:
+1
+1
+1
:+1:
+1
Big :+1:!
Would be awesome to have sourceMap support.
https://developers.google.com/chrome-developer-tools/docs/css-preprocessors#toc-css-preprocessor-support