You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.
Maybe you can add a check if --json flag is set and omit the compilation message? Otherwise it's impossible to pipe the webpack --json output to other tools such as webpack-bundle-size-analyzer:
$ webpack --json | webpack-bundle-size-analyzer
Error: The input is not valid JSON.
Check that:
- You passed the '--json' argument to 'webpack'
- There is no extra non-JSON content in the output, such as log messages.
The parsing error was:
SyntaxError: Unexpected token D in JSON at position 1
The text was updated successfully, but these errors were encountered:
Hi,
when using friendly-errors-webpack-plugin with
webpack --json
the generated JSON is invalid:Maybe you can add a check if
--json
flag is set and omit the compilation message? Otherwise it's impossible to pipe thewebpack --json
output to other tools such as webpack-bundle-size-analyzer:The text was updated successfully, but these errors were encountered: