# html-webpack-new-relic-plugin

> Add NewRelic script tag using HtmlWebpackPlugin

Latest version **4.1.0** (published 2021-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-webpack-new-relic-plugin
pnpm add html-webpack-new-relic-plugin
yarn add html-webpack-new-relic-plugin
bun add html-webpack-new-relic-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.1.0 |
| Published | 2021-06-18 |
| First published | 2018-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 55.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Victor Rodrigues |
| Maintainers | victor.rodrigues |
| Keywords | webpack, new relic, script, javascript |

## Links

- npm: https://www.npmjs.com/package/html-webpack-new-relic-plugin
- Repository: https://github.com/victorrodrigues/html-webpack-new-relic-plugin
- Homepage: https://github.com/victorrodrigues/html-webpack-new-relic-plugin#readme
- Issues: https://github.com/victorrodrigues/html-webpack-new-relic-plugin/issues
- npm.io page: https://npm.io/package/html-webpack-new-relic-plugin

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 4.1.0 (latest) — 2021-06-18
- 4.0.0 — 2021-04-16
- 3.0.0 — 2021-01-12
- 2.0.0 — 2020-04-22
- 1.1.0 — 2019-04-08
- 1.0.1 — 2018-08-13
- 1.0.0 — 2018-08-13

## README

New Relic script tag for the HTML Webpack Plugin
========================================

Add new relic script tag using [html-webpack-plugin](https://github.com/ampedandwired/html-webpack-plugin).

Installation
------------
You must be running webpack on node 8.x or higher

Install the plugin with yarn:
```shell
$ yarn -D html-webpack-new-relic-plugin
```

Or npm:
```shell
$ npm install --save-dev html-webpack-new-relic-plugin
```

Basic Usage
-----------
Require the plugin in your webpack config:

```javascript
var HtmlWebpackNewRelicPlugin = require('html-webpack-new-relic-plugin');
```

Add the plugin to your webpack config:

```javascript
plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackNewRelicPlugin({
    accountID: '121212',
    agentID: '343434',
    trustKey: '565656',
    licenseKey: '123456',
    applicationID: '654321'
  })
]  
```

This plugin adds the script for New Relic "Pro + SPA" instrumentation. If you have "Pro" configured under Browser =>
"Application settings", the SPA data will be collected, but dropped by New Relic during ingestion. SPA data will be
ready to be ingested when and if you switch to "Pro + SPA" instrumentation. The plugin option values can be found at the
bottom of the JavaScript snippet under these settings.

This plugin will add the HUGE New Relic script tag to your html file without making your template file ugly. It suits
best using with [html-webpack-template](https://github.com/jaketrent/html-webpack-template) because you actually don't
need a template file.

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