Skip to content

About

Add NewRelic script tag using HtmlWebpackPlugin

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

New Relic script tag for the HTML Webpack Plugin

Add new relic script tag using html-webpack-plugin.

Installation

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

Install the plugin with yarn:

$ yarn -D html-webpack-new-relic-plugin

Or npm:

$ npm install --save-dev html-webpack-new-relic-plugin

Basic Usage

Require the plugin in your webpack config:

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

Add the plugin to your webpack config:

plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackNewRelicPlugin({
    license: '123456',
    applicationID: '123456'
  })
]  

This 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 because you actually don't need an template file.

About

Add NewRelic script tag using HtmlWebpackPlugin

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages