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

ts-loader message is outputted when webpack is run with '--json' #428

Closed
jumpinjackie opened this issue Dec 22, 2016 · 7 comments
Closed

Comments

@jumpinjackie
Copy link

When I run webpack --json and redirect its output to a json file, the following string is on the first line of the file, rendering it an invalid json file.

ts-loader: Using [email protected] and /path/to/tsconfig.json

@johnnyreilly
Copy link
Member

You can turn it off with silent / log levels I believe

@jumpinjackie
Copy link
Author

jumpinjackie commented Dec 22, 2016

I have never had any ts-loader settings applied and circa v0.8.2 at least (this was the version I upgraded ts-loader from) that message never snuck to stdout when I ran webpack --json

@johnnyreilly
Copy link
Member

You may also want to check out: logInfoToStdOut

@joerick
Copy link

joerick commented Aug 11, 2017

Just ran across this as well. More normal in the UNIX world would be to log this kind of message to stderr. On my system (macOS) that message was on stdout, even without the logInfoToStdOut option. Would it be possible to change the default to stderr?

@johnnyreilly
Copy link
Member

Hi @joerick - the details of how we landed where we are can be found here: #313

I'm open to change subject to the concerns raised in the linked issue still being addressed

@joerick
Copy link

joerick commented Aug 13, 2017

Hm... so the default is for 'info' logs to go to stderr. Not sure why I was having that problem then. I've combed through the ts-loader code and I can't see any obvious reason why that would be. I'll let you know if I find anything definitive, otherwise, sorry for the noise!

@johnnyreilly
Copy link
Member

No bother!

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

3 participants