# @what-src/webpack-plugin

> what-src webpack-plugin.

Latest version **1.1.0-alpha.0** (published 2019-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @what-src/webpack-plugin
pnpm add @what-src/webpack-plugin
yarn add @what-src/webpack-plugin
bun add @what-src/webpack-plugin
```

## 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.0-alpha.0 |
| Published | 2019-09-30 |
| First published | 2019-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.9.0 |
| Dependencies | 5 |
| Unpacked size | 23.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Scott Doucet |
| Maintainers | duroktar |

## Links

- npm: https://www.npmjs.com/package/@what-src/webpack-plugin
- Repository: https://github.com/duroktar/what-src/tree/master/packages/what-src-plugin-webpack
- npm.io page: https://npm.io/package/@what-src/webpack-plugin

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [tapable](https://npm.io/package/tapable.md) ^1.1.3
- [webpack](https://npm.io/package/webpack.md) ^4.41.0
- [webpack-log](https://npm.io/package/webpack-log.md) ^3.0.1
- [@what-src/express](https://npm.io/package/@what-src/express.md) ^1.1.0-alpha.0

## Recent versions

- 1.1.0-alpha.0 (latest) — 2019-09-30
- 1.0.11 — 2019-09-25
- 1.0.8 — 2019-09-22
- 1.0.6 — 2019-09-20
- 1.0.4 — 2019-09-19
- 1.0.3 — 2019-09-19
- 1.0.2 — 2019-09-19
- 1.0.1 — 2019-09-18
- 1.0.0 — 2019-09-17

## README

# @what-src/webpack-plugin

> what-src webpack-plugin.

Check out the [packages folder](https://github.com/duroktar/what-src/tree/master/packages) for more information.

## Usage

Via .webpack.config.js

```ts
const { WhatSrcServerWebpackPlugin } = require('@what-src/plugin') // <- import plugin

...
module.exports = {
  mode: 'development',
  entry: './src/index.jsx',
  output: {
    filename: 'bundle.js',
  },
  ...
plugins: [new WhatSrcServerWebpackPlugin(options)] // <- add plugin
...
}
```

### options

options are defined by the type

```ts
type Options = {
  productionMode?: boolean;
  host?: string;
  port?: number;
  endpoint?: string;
  shh?: boolean;
};
```

<br />

#### - productionMode: [boolean]
  - Enable running what-src in production mode (default: `false`)

#### - host: [string]
  - The host to serve on (default: `localhost`)

#### - port: [number]
  - The port to serve on (default: `8018`)

#### - endpoint: [string]
  - The url mount path of the @what-src/middleware (default: `__what_src`)

#### - shh: [boolean]
  - Turns off logging (default: `false`)

## License

[MIT](https://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/@what-src/webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
