# add-deploy-meta-webpack-plugin

> AddDeployMetaWebpackPlugin: Supercharge your webpack with this plugin! Injects deploy and bundle metadata into your global window object. Get git, build, and package details at your fingertips. Debug smarter, not harder 😊

Latest version **0.0.5** (published 2024-11-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install add-deploy-meta-webpack-plugin
pnpm add add-deploy-meta-webpack-plugin
yarn add add-deploy-meta-webpack-plugin
bun add add-deploy-meta-webpack-plugin
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2024-11-25 |
| First published | 2024-04-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 39.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dolgov Ivan |
| Maintainers | idolgoff |
| Keywords | Webpack, Plugin, Global Variables, CI/CD, Deploy, Configuration |

## Links

- npm: https://www.npmjs.com/package/add-deploy-meta-webpack-plugin
- npm.io page: https://npm.io/package/add-deploy-meta-webpack-plugin

## Dependencies (2)

- [meta-version](https://npm.io/package/meta-version.md) ^1.0.2
- [add-to-global-webpack-plugin](https://npm.io/package/add-to-global-webpack-plugin.md) ^0.0.4

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2024-11-25
- 0.0.4 — 2024-04-17
- 0.0.3 — 2024-04-15
- 0.0.2 — 2024-04-15
- 0.0.1 — 2024-04-15

## README

# AddDeployMetaWebpackPlugin

Supercharge your webpack with this plugin! Injects deploy and bundle metadata into your global window object. Get git, build, and package details at your fingertips. Debug smarter, not harder.

## Installation

Install the plugin with npm:

```bash
npm install add-deploy-meta-webpack-plugin --save-dev
```

## Usage

First, import the plugin in your webpack.config.js:

```javascript
const AddDeployMetaWebpackPlugin = require("add-deploy-meta-webpack-plugin");
```

Then, add the plugin to your webpack configuration:

```javascript
module.exports = {
    // ... other configurations
    plugins: [
        new AddDeployMetaWebpackPlugin({
            path: "your.path.here", // The path to the property on the window object.
            extraData: {
                /* your extra data here */
            }, // The extra data to assign to the property in addition to meta that is auto collected.
        }),
    ],
};
```

## Options

The AddDeployMetaWebpackPlugin constructor accepts an options object:

-   path (string): The path to the property on the window object.
-   extraData (any): The extra data to assign to the property in addition to meta that is auto collected.

## Example

Here’s an example of how to use the plugin:

```javascript
new AddDeployMetaWebpackPlugin({
    path: 'myApp.meta',
    extraData: { custom: 'Custom Data' },
}),
```

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