2createStudio / postcss-sprites

Generate sprites from stylesheets.
MIT License
413 stars 50 forks source link

pretty log and option to disable log #65

Closed zyy7259 closed 7 years ago

zyy7259 commented 8 years ago

Hi, great plugin. It helps me a lot generating sprites.

Here is a little request. I use this plugin with postcss-cli Could you please format the log so it looks pretty and useful? Now it just prints a few lines of useless logs. And provide an option to disable log?

Thanks.

postcss-sprites: 0 spritesheet generated.
postcss-sprites: 0 spritesheet generated.
postcss-sprites: 0 spritesheet generated.
postcss-sprites: 0 spritesheet generated.
vvasilev- commented 8 years ago

@zyy7259 Can you give an example for logs that will be useful? :smile:

zyy7259 commented 8 years ago

Maybe some key steps when generating the sprits, like initializing, checking (filtering), grouping, and etc. And maybe an option to disable logging.

alexlafroscia commented 7 years ago

I definitely second the ability to disable this. We run this plugin over dozens of stylesheets -- it's very noisy and not actually that useful. Since result.warn is really meant to convey something actionable, if you're looking to provide general diagnostic information about how many spritesheets are being generated, maybe a tool like debug would be a way to do that and allow people to opt-in to the logging.

jednano commented 7 years ago

I think this "warning" is the reason I have to look at this unsightly banner on my dev server:

image