# transform-manifest-plugin

> This plugin is used to merge and transform json files

Latest version **0.0.2** (published 2018-12-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install transform-manifest-plugin
pnpm add transform-manifest-plugin
yarn add transform-manifest-plugin
bun add transform-manifest-plugin
```

## 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.0.2 |
| Published | 2018-12-27 |
| First published | 2018-12-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vladimir Varavva |
| Maintainers | acid-base |
| Keywords | json merge, manifest merge, manifest transform |

## Links

- npm: https://www.npmjs.com/package/transform-manifest-plugin
- Repository: https://github.com/Acid-base/transform-manifest-plugin
- Homepage: https://github.com/Acid-base/transform-manifest-plugin#readme
- Issues: https://github.com/Acid-base/transform-manifest-plugin/issues
- npm.io page: https://npm.io/package/transform-manifest-plugin

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-12-27
- 0.0.1 — 2018-12-20

## README

# NOT READY!

# Transform Manifest Plugin

Webpack plugin for merge and transform json files.

## Install

```bash
npm install --save-dev transform-manifest-plugin
```

## Usage

In your `webpack.config.js`

```javascript
const TransformManifestPlugin = require('transform-manifest-plugin');

module.exports = {
    // ...
    plugins: [
        new TransformManifestPlugin({
            input: {
                withTransform: [{
                    file: './assets.json',
                    path: 'https://<path>/'
                }],
                withoutTransform: [
                    './manifest.json'
                ]
            },
            output: './manifest.json'
        })
    ]
};
```

```json
// assets.json
{
  "alpha.js": "alpha.0987654321.js",
  "alpha.css": "alpha.0987654321.css"
}

// manifest.json
{
  "beta.js": "https://<path>/beta.1234567890.js",
  "beta.css": "https://<path>/beta.1234567890.css"
}
```

Result

```json
// manifest.json
{
  "alpha.js": "https://<path>/alpha.1234567890.js",
  "alpha.css": "https://<path>/alpha.1234567890.css",
  "beta.js": "https://<path>/beta.0987654321.js",
  "beta.css": "https://<path>/beta.0987654321.js"
}
```

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