# webpack-custom-chunk-id-plugin

> Custom chunk id generator with appended and prepended strings

Latest version **1.0.3** (published 2019-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-custom-chunk-id-plugin
pnpm add webpack-custom-chunk-id-plugin
yarn add webpack-custom-chunk-id-plugin
bun add webpack-custom-chunk-id-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-02-06 |
| First published | 2019-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Darshan Sagar |
| Maintainers | darshanlsagar |
| Keywords | webpack, custom, chunk, id, custom chunk, chunk id, custom chunk id, plugin |

## Links

- npm: https://www.npmjs.com/package/webpack-custom-chunk-id-plugin
- Repository: https://github.com/darshanlsagar/webpack-custom-chunk-id-plugin
- Homepage: https://github.com/darshanlsagar/webpack-custom-chunk-id-plugin#readme
- Issues: https://github.com/darshanlsagar/webpack-custom-chunk-id-plugin/issues
- npm.io page: https://npm.io/package/webpack-custom-chunk-id-plugin

## 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

- 1.0.3 (latest) — 2019-02-06
- 1.0.2 — 2019-01-28
- 1.0.1 — 2019-01-28
- 1.0.0 — 2019-01-28

## README

# webpack-custom-chunk-id-plugin
Custom chunk id generator with appended and prepended strings

## webpack version
4.0

## Install

```shell
$ npm i webpack-custom-chunk-id-plugin
```

## Usage

```js
const customChunkIdPlugin = require('webpack-custom-chunk-id-plugin')

webpackConfig = {
  output: {
    //// Dont forget to set chunkFilename using [id] like below
    chunkFilename: '[id].js'
  },
  plugins: [
	new customChunkIdPlugin({
		//// Chunk count starts with 10 now, default is 0
		startingCount: 10,
		//// Chunk files will be generated to configs folder in outputPath
		prepend: "configs/",
		//// Chunk files will be appended with .custom in output
		append: ".custom",
		//// Entry modules will be ignored from customizing chunk id logic
		entryModules: false,
		//// Non Entry modules will be considered for customizing chunk id logic
		nonEntryModules: true,
		//// Vendor modules i.e, related modules will be considered for customizing chunk id logic
		vendorModules: true,
		//// Hashed value will be considered while customizing chunk id's.
		//// Hashing will be done based on chunk's resource path or chunk's resource name or chunk name or counter
		hash: true,
		//// Hash length will be considered upto 12 charectors now, default is 8
		hashLength: 12
	})
  ]
}
```

## Author

[DarshanKumar L Sagar](https://github.com/darshanlsagar)

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