# webpack-asset-manifest

> Builds asset manifest of assets emitted from webpack.

Latest version **1.0.0** (published 2016-03-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install webpack-asset-manifest
pnpm add webpack-asset-manifest
yarn add webpack-asset-manifest
bun add webpack-asset-manifest
```

## 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.0 |
| Published | 2016-03-31 |
| First published | 2016-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hunter Haydel |
| Maintainers | rentpath |
| Keywords | webpack, asset, manifest |

## Links

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

## Dependencies (1)

- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1

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

- 1.0.0 (latest) — 2016-03-31

## README

# Webpack Asset Manifest


Generates an asset manifest file, specifically for server-side frameworks like rails and sinatra that don’t generate asset links with Javascript.

## Usage

Add the following to your webpack.config.js:

```javascript
var AssetManifestPlugin = require('webpack-asset-manifest'),

var config = {
...
    plugins: [
      new AssetManifestPlugin('webpack-assets.json', path.resolve(__dirname, 'app/assets')),
};

/* Use the PrefetchPlugin to feed images to AssetManifestPlugin. */
var images = glob.sync('app/assets/images/**/*.+(jpg|jpeg|gif|png)');
images.forEach(function(image) {
  config.plugins.push(new webpack.PrefetchPlugin('./' + image));
});
```

## Commitizen
   `webpack-asset-manifest` uses [Commitizen](https://commitizen.github.io/cz-cli/) to format commit messages.
   * Install it globally `$ npm install -g commitizen`
  Once you are ready to commit, follow the familiar github workflow, with a slight change.
  ```
  $ git add <files>
  $ git cz
  ```
  `git cz` will bring up the Commitizen commit prompt, follow the instructions, and `$ git push` as usual.

  This commit message format is used for `semantic-release`.

# License
[MIT](https://github.com/rentpath/webpack-asset-manifest/blob/master/LICENSE)

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