# initial-app-message

> Recommended usage with [friendly-errors-webpack-plugin](https://github.com/geowarin/friendly-errors-webpack-plugin):

Latest version **1.1.3** (published 2018-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install initial-app-message
pnpm add initial-app-message
yarn add initial-app-message
bun add initial-app-message
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2018-08-10 |
| First published | 2018-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Lorenzo Ruiz |
| Maintainers | larsbs |

## Links

- npm: https://www.npmjs.com/package/initial-app-message
- Repository: https://github.com/Drawbotics/initial-webpack-message
- Homepage: https://github.com/Drawbotics/initial-webpack-message#readme
- Issues: https://github.com/Drawbotics/initial-webpack-message/issues
- npm.io page: https://npm.io/package/initial-app-message

## Dependencies (4)

- [ip](https://npm.io/package/ip.md) ^1.1.5
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^4.0.0
- [cli-truncate](https://npm.io/package/cli-truncate.md) ^1.1.0

## Recent versions

- 1.1.3 (latest) — 2018-08-10
- 1.1.2 — 2018-08-06
- 1.1.1 — 2018-08-06
- 1.1.0 — 2018-08-06
- 1.0.0 — 2018-04-03

## README

# Initial Webpack message

Recommended usage with [friendly-errors-webpack-plugin](https://github.com/geowarin/friendly-errors-webpack-plugin):

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

---
_Source: https://npm.io/package/initial-app-message · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
