# webpack-split-plugin

> custom code splitting in webpack [wip]

Latest version **0.1.1** (published 2017-05-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-05-19 |
| First published | 2017-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | James |
| Maintainers | aretecode |
| Keywords | webpack, chain-able, plugin, fluent, chain, split |

## Links

- npm: https://www.npmjs.com/package/webpack-split-plugin
- Repository: https://github.com/aretecode/webpack-split-plugin
- Homepage: https://github.com/aretecode/webpack-split-plugin#readme
- Issues: https://github.com/aretecode/webpack-split-plugin/issues
- npm.io page: https://npm.io/package/webpack-split-plugin

## Dependencies (5)

- [fliplog](https://npm.io/package/fliplog.md) ^0.2.7
- [flipfile](https://npm.io/package/flipfile.md) ^0.0.13
- [chain-able](https://npm.io/package/chain-able.md) ^1.0.0
- [file-chain](https://npm.io/package/file-chain.md) ^0.0.3
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) ^4.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.1.1 (latest) — 2017-05-19
- 0.3.0 (custom) — 2017-06-12
- 0.1.0 — 2017-05-19

## README

# 🤸🔌 webpack-split-plugin

> split bundle into multiple pieces with custom specifications
> _(currently hard coded as 1/2 the size)_

extension of [CommonsChunkPlugin](https://github.com/webpack/webpack/blob/cd1cd29fba46bd0133db0ca89acbe6c6c0240323/lib/optimize/CommonsChunkPlugin.js)

## 📦 install
```bash
yarn add webpack-split-plugin --dev
npm i webpack-split-plugin --save-dev
```

```js
const WebpackSplitPlugin = require('webpack-split-plugin')
```

# [📘 example](https://github.com/aretecode/webpack-split-plugin)

```js
plugins: [
  new WebpackSplitPlugin({
    // * required
    name: 'eh',
    filename: '[name]-split.js',

    // [optional], very verbose output
    debug: true,

    // [optional], automatically figures it out after first run
    totalSize: '1937kb', // 1.937mb
  }),
],
```

### [🔗 resources](./resources.md)
### [🔬 tests](./test)

### 🚧 work-in-progress

> more coming soon with stability & customizability.

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