# unipack

> Universal Webpack.

Latest version **0.1.0** (published 2017-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install unipack
pnpm add unipack
yarn add unipack
bun add unipack
```

## 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.0 |
| Published | 2017-07-28 |
| First published | 2017-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | egoist |
| Maintainers | rem |

## Links

- npm: https://www.npmjs.com/package/unipack
- Repository: https://github.com/egoist/unipack
- Homepage: https://github.com/egoist/unipack#readme
- Issues: https://github.com/egoist/unipack/issues
- npm.io page: https://npm.io/package/unipack

## Recent versions

- 0.1.0 (latest) — 2017-07-28

## README

# unipack

[![NPM version](https://img.shields.io/npm/v/unipack.svg?style=flat)](https://npmjs.com/package/unipack) [![NPM downloads](https://img.shields.io/npm/dm/unipack.svg?style=flat)](https://npmjs.com/package/unipack) [![CircleCI](https://circleci.com/gh/egoist/unipack/tree/master.svg?style=shield)](https://circleci.com/gh/egoist/unipack/tree/master)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)

## Install

```bash
yarn add unipack

# peer dependencies
yarn add webpack webpack-dev-server
```

## Usage

```js
const webpack = require('webpack')
const unipack = require('unipack')

const pack = unipack({
  serverCompiler: webpack(serverWebpackConfig)
  clientCompiler: webpack(clientWebpackConfig),
})

// Built both
pack.build()

// Run both in dev mode
// Run server compiler in watch mode
// Run client compiler with a dev server
pack.start({
  host,
  port,
  devServerOptions,
  watchOption
})

// Then you will have:
pack.devServer // express app
pack.devServerInstance // `net.Server` instance
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**unipack** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/unipack/contributors)).

> [egoist.moe](https://egoist.moe) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)

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