# leajs-webpack

> webpack development and hot reload middleware

Latest version **0.1.1** (published 2018-11-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install leajs-webpack
pnpm add leajs-webpack
yarn add leajs-webpack
bun add leajs-webpack
```

## 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.1.1 |
| Published | 2018-11-26 |
| First published | 2018-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 6 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Pflugradt |
| Maintainers | paulpflug |

## Links

- npm: https://www.npmjs.com/package/leajs-webpack
- Repository: https://github.com/lea-js/leajs-webpack
- Homepage: https://github.com/lea-js/
- Issues: https://github.com/lea-js/leajs-webpack/issues
- npm.io page: https://npm.io/package/leajs-webpack

## Dependencies (6)

- [mime](https://npm.io/package/mime.md) ^2.3.1
- [memory-fs](https://npm.io/package/memory-fs.md) ^0.4.1
- [read-conf](https://npm.io/package/read-conf.md) ^0.5.1
- [eventsource-polyfill](https://npm.io/package/eventsource-polyfill.md) ^0.9.6
- [webpack-hot-middleware](https://npm.io/package/webpack-hot-middleware.md) ^2.24.3
- [virtual-module-webpack-plugin](https://npm.io/package/virtual-module-webpack-plugin.md) ^0.4.0

## Recent versions

- 0.1.1 (latest) — 2018-11-26
- 0.1.0 — 2018-05-29

## README

# leajs-webpack

Plugin of [leajs](https://github.com/lea-js/leajs-server).

Webpack development and hot reload middleware.

## leajs.config

```js
module.exports = {

  plugins: [
    "leajs-webpack"
  ]

  // Configuration object
  // type: Object
  webpack: {

    // Name of the webpack configuration file
    config: "webpack.config", // String

    // Folders to search for webpack configuration file
    folder: ["./build","./"], // [Array, String]

    // Options to pass to hot middleware client. Set False to deactivate hot module reloading.
    hot: {}, // [Object, Boolean]

    // Namespace to use in Url e.g. /webpack
    // Default: Read from webpack.config 'output.publicPath'
    mount: null, // String

    // Output folder of webpack
    // Default: Read from webpack.config 'output.path'
    output: null, // String

    // No compiling, only serve the compiled bundle as a folder
    // Default: inProduction
    static: null, // Boolean

  // …

}
```

## License
Copyright (c) 2018 Paul Pflugradt
Licensed under the MIT license.

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