🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

inject-inline-html-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inject-inline-html-webpack-plugin

Inject inline scripts into the html file generated via html webpack plugin

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
658
63.68%
Maintainers
1
Weekly downloads
 
Created
Source

Inject Inline Html Webpack Plugin

Continuous Integration codecov Maturity badge - level 2 GitHub license Slack workspace All Contributors

node-current npm npm downloads

Overview

This Webpack plugin provide a way to inject inline chunks into the HTML file generated by the html-webpack-plugin. It differs from some other inline html webpack plugins in that the script to inject does not need to be specified as an explicit chunk or entry point. Further, the injected script is built according to the webpack loaders, and is not inlined raw.

Only Webpack 5 is supported.

Installation

yarn add -D inject-inline-html-webpack-plugin

Then instantiate the plugin after the HtmlWebpackPlugin, and specify a inlineScripts in the html-webpack-plugin config:

plugins: [new HtmlWebpackPlugin({ inlineScripts: ['some-script.js'] }), new InjectInlineHtmlWebpackPlugin()]

Contributing

Contributions are welcome!

Contributors


Noah

🤔 💻 🚇

To add a contributor to the README, signal the all-contributors bot by adding comments in your PRs like so:

@all-contributors please add <username> for <contribution type>

FAQs

Package last updated on 08 Jun 2022

Did you know?

Socket

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