Socket
Socket
Sign inDemoInstall

html-insert-webpack-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    html-insert-webpack-plugin

Inject script and style to html by custome rules


Version published
Maintainers
1
Install size
4.69 kB
Created

Readme

Source

Inject extension for the HTML Webpack Plugin

npm version Dependency Status Build status js-semistandard-style

This is an extension plugin for the webpack plugin html-webpack-plugin - a plugin that simplifies the creation of HTML files to serve your webpack bundles.

Installation

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

Install the plugin with npm:

$ npm install --save-dev html-insert-webpack-plugin

Basic Usage

Require the plugin in your webpack config:

var HtmlInsertWebpackPlugin = require('html-insert-webpack-plugin');

Add the plugin to your webpack config as follows:

plugins: [
  new HtmlWebpackPlugin(),
  new HtmlInsertWebpackPlugin()
]  

The above configuration will actually do nothing due to the configuration defaults.

Keywords

FAQs

Last updated on 08 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc