Beautiful formatting for Webpack messages; ported from Create React App!
The console output from CRA is very well-done! Unfortunately, the only way to use it is to install all of
react-dev-utils, which is quite a module-rich tree. While there is nothing wrong with this, many times I'd prefer a quick install for my custom Webpack configs (which aren't always React-related).
If you are already using
react-dev-utils, you do not need this module and should do this instead:
const formatMessages = ;
The source code of this module is (nearly) a direct copy-paste of the original file. Only two modifications have been made:
statsobject --- the original required a
$ npm install webpack-format-messages --save-dev
const webpack = ;const formatMessages = ;const compiler = ;compiler;compiler;
Extracts & prettifies warning and error messages from Webpack.
webpack-messages-- Wraps this module as a Webpack plugin, with lifecycle hooks
This module is pulled directly from
react-dev-utils, provided by Facebook Incubator.
This package exists solely as a standalone install~!