New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
257
decreased by-23.28%
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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc