Closed zyy7259 closed 7 years ago
@zyy7259 Can you give an example for logs that will be useful? :smile:
Maybe some key steps when generating the sprits, like initializing, checking (filtering), grouping, and etc. And maybe an option to disable logging.
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.
I think this "warning" is the reason I have to look at this unsightly banner on my dev server:
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.