# webpack-manifest-resource-plugin

> webpack manifest resource dependencies plugin

Latest version **4.2.7** (published 2021-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-manifest-resource-plugin
pnpm add webpack-manifest-resource-plugin
yarn add webpack-manifest-resource-plugin
bun add webpack-manifest-resource-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 | 4.2.7 |
| Published | 2021-06-23 |
| First published | 2017-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 2 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hubcarl@126.com |
| Maintainers | hubcarl |
| Keywords | webpack, manifest, webpack-manifest-plugin |

## Links

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

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) >=3.5 <5
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.30.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

- 4.2.7 (latest) — 2021-06-23
- 4.0.0-beta.2 (next) — 2018-02-28
- 4.2.6 — 2018-11-05
- 4.2.5 — 2018-11-05
- 4.2.4 — 2018-06-09
- 4.2.3 — 2018-03-29
- 4.2.2 — 2018-03-29
- 4.2.1 — 2018-03-29
- 4.2.0 — 2018-03-29
- 4.0.0 — 2018-03-07
- 2.0.2 — 2017-12-13
- 2.0.1 — 2017-12-13
- 2.0.0 — 2017-12-08
- 1.1.0-beta.1 — 2017-12-05
- 1.0.0 — 2017-11-09
- … 4 more at https://npm.io/package/webpack-manifest-resource-plugin/versions

## README

# webpack-manifest-resource-plugin

normalize js/css resource dependencies for [webpack-manifest-plugin](https://github.com/danethurber/webpack-manifest-plugin)


## Install


```bash
npm install --save-dev webpack-manifest-resource-plugin
```

## Usage


var ManifestPlugin = require('webpack-manifest-resource-plugin');

```js
module.exports = {
    // ...
    plugins: [
      new ManifestPlugin()
    ]
};
```

This will generate a manifest.json file in your root output directory with a mapping of all source file names to their corresponding output file, for example:

```json
{
  
 "mods/alpha.js": "mods/alpha.1234567890.js",
 "mods/alpha.css": "mods/alpha.435336266.css",
 "mods/omega.js": "mods/omega.0987654321.js",
 "mods/omega.css": "mods/omega.323299900.css",
 "vendor": "vendor.32465656.js"

  deps:{
    "mods/alpha.js":{
      js: ["vendor.32465656.js", "mods/alpha.1234567890.js"],
      css: ["mods/alpha.435336266.css"]
    },
    "mods/omega.js":{
      js: ["vendor.32465656.js", "mods/omega.0987654321.js"],
      css: ["mods/omega.323299900.css"]
    }
  }
}
```

## API

support [webpack-manifest-plugin](https://github.com/danethurber/webpack-manifest-plugin) all api, and add commonsChunk config:

### `options.commonsChunk`

Type: `Array`<br>
Default: `[]`


the `commonsChunk` is  `webpack.optimize.CommonsChunkPlugin` name config.

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