andywer / postcss-debug

Debug your postcss workflow with ease! Creates snapshots of your CSS files before/after each postcss plugin is run.
MIT License
95 stars 7 forks source link

Empty lines aren't shown #17

Closed alienlebarge closed 8 years ago

alienlebarge commented 8 years ago

The snapshots doesn't show empty lines.

For example, here's a piece of my initial code:

...
/**
 * SETINGS
 */

@import "settings/_settings.global.css";
@import "settings/_settings.fontface.css";
@import "settings/_settings.responsive.css";

/**
 * TOOLS
 */

@import "tools/_tools.mixins.css";
@import "tools/_tools.clearfix.css";

/**
 * GENERIC
 */

@import "generic/_generic.box-sizing.css";
@import "normalize.css";
@import "generic/_generic.reset.css";
@import "generic/_generic.shared.css";
...

and here's what postcss-debug show:

napkin 3 13 09 16 10 54 26 am

andywer commented 8 years ago

Unfortunately this is a postcss bug: postcss/postcss-import#206

But I will see what I can do...

andywer commented 8 years ago

So this is basically the reason for the missing blank lines: https://github.com/postcss/postcss/issues/364

But I might be able to work around that issue...

andywer commented 8 years ago

@alienlebarge Could you test the current master branch if it works for you as expected now?

alienlebarge commented 8 years ago

@andywer Works great ! 👍 Thanks for the fix !