# beidou-plugin-webpack

> webpack middleware

Latest version **0.3.2** (published 2017-12-15) · 0 weekly downloads

## Install

```sh
npm install beidou-plugin-webpack
pnpm add beidou-plugin-webpack
yarn add beidou-plugin-webpack
bun add beidou-plugin-webpack
```

Provides the commands `beidou-build`, `webpack-build`.

## 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.3.2 |
| Published | 2017-12-15 |
| First published | 2017-06-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 19 |
| Known vulnerabilities | 0 (+3 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2731 |
| Maintainers | njugray, weichunpeng |
| Keywords | beidou, plugin, webpack |

## Links

- npm: https://www.npmjs.com/package/beidou-plugin-webpack
- Repository: https://github.com/alibaba/beidou/tree/master/packages/beidou-plugin-webpack
- npm.io page: https://npm.io/package/beidou-plugin-webpack

## Dependencies (19)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [request](https://npm.io/package/request.md) ^2.81.0
- [webpack](https://npm.io/package/webpack.md) 3.x
- [sdk-base](https://npm.io/package/sdk-base.md) ^2.0.1
- [memory-fs](https://npm.io/package/memory-fs.md) ^0.4.1
- [node-sass](https://npm.io/package/node-sass.md) ^4.5.3
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.0
- [css-loader](https://npm.io/package/css-loader.md) ^0.28.7
- [url-loader](https://npm.io/package/url-loader.md) ^0.6.2
- [sass-loader](https://npm.io/package/sass-loader.md) ^6.0.6
- [babel-loader](https://npm.io/package/babel-loader.md) ^7.0.0
- [style-loader](https://npm.io/package/style-loader.md) ^0.19.0
- [webpack-dev-middleware](https://npm.io/package/webpack-dev-middleware.md) ^1.11.0
- [webpack-hot-middleware](https://npm.io/package/webpack-hot-middleware.md) ^2.21.0
- [babel-preset-beidou-client](https://npm.io/package/babel-preset-beidou-client.md) ^0.1.0
- [koa-webpack-dev-middleware](https://npm.io/package/koa-webpack-dev-middleware.md) ^1.2.1
- [koa-webpack-hot-middleware](https://npm.io/package/koa-webpack-hot-middleware.md) ^1.0.3
- [extract-text-webpack-plugin](https://npm.io/package/extract-text-webpack-plugin.md) ^2.1.2

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.3.2 (latest) — 2017-12-15
- 0.3.0 — 2017-12-15
- 0.2.2 — 2017-09-13
- 0.2.1 — 2017-07-19
- 0.2.0 — 2017-07-19
- 0.0.1 — 2017-06-06

## README

# beidou-plugin-webpack

webpack dev server for local environment

### Features
* Serve jsx/js source
* Serve less/scss/css source
* Support hot module replacement(hmr)


### Configuration

- config/plugin.default.js:  

```
exports.webpack = {
    enable: true,
    package: 'beidou-plugin-webpack',
    env: ['local', 'unittest']
  }

```

- config/config.local.js  

```
exports.webpack = {
    //[optional] default to 'beidou-plugin-webpack/config/webpack.default.config.js'
    defaultConfig: 'path of webpack config', 
    //[optional] the path of request should be transfered to webpack. e.g HMR: /__webpack_hmr
    path: [], 
    //[optional] 
    noInfo: false,
    //[optional] 
    quiet: false,
    //[optional] 
    lazy: false,
    //[optional] 
    watchOptions: {
        aggregateTimeout: 300,
        poll: true,
    },
    //[optional] 
    headers: { 'X-Custom-Header': 'yes' },
    //[optional] 
    stats: {
        colors: true,
        chunks: false,
    },
    //[optional] 
    defaultEntryName: 'index.jsx',
    //[optional] 
    outputPath: './build',
    //[optional] 
    publicPath: '/build',
    //[optional] hot module replacement config
    hmr: {
        path: '__webpack_hmr',
        timeout: '20000',
        heartbeat: '10000',
    }
};

```

### License

[MIT](LICENSE)

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