initial-webpack-message
v1.0.1
Published
Recommended usage with [friendly-errors-webpack-plugin](https://github.com/geowarin/friendly-errors-webpack-plugin):
Downloads
2
Readme
Initial Webpack message
Recommended usage with friendly-errors-webpack-plugin:
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const initialMessage = require('initial-webpack-message');
const WEBPACK_PORT = 4000;
module.exports = {
// ... rest of Webpack config
plugins: [
new FriendlyErrorsWebpackPlugin({
clearConsole: true,
compilationSuccessInfo: {
messages: initialMessage(WEBPACK_PORT, [
// environment variables to be displayed
'API_HOST',
'GRAPHQL_HOST',
'ANALYTICS_HOST',
]),
},
}),
],
// ... rest of Webpack config
};