Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty log and option to disable log #65

Closed
zyy7259 opened this issue Aug 28, 2016 · 4 comments
Closed

pretty log and option to disable log #65

zyy7259 opened this issue Aug 28, 2016 · 4 comments

Comments

@zyy7259
Copy link

zyy7259 commented Aug 28, 2016

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-
Copy link
Member

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

@zyy7259
Copy link
Author

zyy7259 commented Aug 30, 2016

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

@alexlafroscia
Copy link

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
Copy link
Contributor

jednano commented Feb 7, 2017

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants