initial-webpack-message

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i initial-webpack-message

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.75 kB

Total Files

4

Last publish

Collaborators

  • larsbs