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

warnings #23

Open
mightyaleksey opened this issue Aug 28, 2015 · 2 comments
Open

warnings #23

mightyaleksey opened this issue Aug 28, 2015 · 2 comments

Comments

@mightyaleksey
Copy link
Member

I found out that it is possible to add warnings with warn() method in the result class. Seems to me, some plugins use it to throw an error.

What you think about adding some functionality to handle those warnings and treat them as simple errors? I think we can simply throw an error somewhere here: https://github.com/css-modules/css-modules-loader-core/blob/master/src/index.js#L19

Currently, you don't see any if they occur.

@mightyaleksey
Copy link
Member Author

As a possible solution, we can add a debug mode, so it will be possible to output those warnings.
https://github.com/postcss/postcss/blob/master/docs/api.md#lazywarnings

Any thoughts?

@mightyaleksey
Copy link
Member Author

There is also a quick solution as another postcss plugin: https://github.com/postcss/postcss-reporter

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

No branches or pull requests

1 participant