# autohost-webpack-hot

> A plugin for autohost that enables webpack hot reloading.

Latest version **0.2.0** (published 2015-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install autohost-webpack-hot
pnpm add autohost-webpack-hot
yarn add autohost-webpack-hot
bun add autohost-webpack-hot
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2015-11-27 |
| First published | 2015-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Doug Neiner |
| Maintainers | dougneiner |
| Keywords | autohost, webpack |

## Links

- npm: https://www.npmjs.com/package/autohost-webpack-hot
- Repository: https://github.com/dcneiner/autohost-webpack-hot
- Homepage: https://github.com/LeanKit-Labs/autohost-webpack-hot#readme
- Issues: https://github.com/LeanKit-Labs/autohost-webpack-hot/issues
- npm.io page: https://npm.io/package/autohost-webpack-hot

## Dependencies (5)

- [webpack](https://npm.io/package/webpack.md) ^1.12.9
- [lodash.get](https://npm.io/package/lodash.get.md) ^3.7.0
- [lodash.assign](https://npm.io/package/lodash.assign.md) ^3.2.0
- [webpack-dev-middleware](https://npm.io/package/webpack-dev-middleware.md) ^1.4.0
- [webpack-hot-middleware](https://npm.io/package/webpack-hot-middleware.md) ^2.5.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2015-11-27
- 0.1.0 — 2015-11-27

## README

# autohost-webpack-hot

This is a _very_ simple plugin for autohost to wire up webpack (and babel supported) hot-reloading.

## Usage

### Install

```bash
npm install autohost-webpack-hot --save
```


### Integrate with Autohost

```js
var autohost = require( "autohost" );
var fount = require( "fount" );

var webpackConfig = require( "./webpack.config.js" );
var webpackCompiler = require( "webback" )( webpackConfig );

// Any settings to pass to webpack-dev-server
webpackCompiler._middlewareConfig = {
    stats: {
        colors: true
    }
};

fount.register( "webpackCompiler", webpackCompiler );

var host = autohost( {
    modules: [ "autohost-webpack-hot" ]
} );

host.start();
```

_Follow the rest of the example from [react-transform-boilerplate](https://github.com/gaearon/react-transform-boilerplate) - This autohost plugin will just handle serving the files. The following two files are included for reference._

## Tests

### Single Run

```bash
npm test
```

### Continuous Run with Coverage

```bash
gulp
```

## Notes

* Be sure to setup the `.babelrc` correctly to reference the react transform plugins.

## License

MIT

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