initial-app-message

1.1.3 • Public • Published

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
};

Readme

Keywords

none

Package Sidebar

Install

npm i initial-app-message

Weekly Downloads

2

Version

1.1.3

License

MIT

Unpacked Size

3.67 kB

Total Files

6

Last publish

Collaborators

  • larsbs