lydell / autoprefixer-brunch

[DEPRECATED] Adds autoprefixer support to brunch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pipe Source Maps from Brunch to Autoprefixer

jupl opened this issue · comments

commented

Autoprefixer can accept existing source maps. Plugin currently does not use map from Brunch, breaking source map flow. Something like this should fix it.

result = @compiler.process(data, {map: JSON.stringify(map), from: path})

Really? When I first developed this plugin I tested that, and the source maps mapped back to the original preprocessor files. I guess I'll have to check that again ...

commented

It seems logical since the map argument in compile/optimize is currently unused.

Nope, as far as I remember brunch takes care of that automatically.

commented

Ok. I'll probably clean my environment and try it again. I'll come back if I still have issues.