Gathering detailed insights and metrics for inject-body-webpack-plugin
Gathering detailed insights and metrics for inject-body-webpack-plugin
Gathering detailed insights and metrics for inject-body-webpack-plugin
Gathering detailed insights and metrics for inject-body-webpack-plugin
@fjzn/inject-body-webpack-plugin
向hml中加内容
html-webpack-code-inject-plugin
Inject custom code in head or body.
env-inject-body-webpack-plugin
Webpack plugin that injects a custom string into the end of the body of html-webpack-plugin output according to the environment.
@contagt/inject-body-webpack-plugin
Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.
Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.
npm install inject-body-webpack-plugin
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
84 Commits
6 Forks
1 Watchers
10 Branches
2 Contributors
Updated on Dec 19, 2023
Latest Version
1.3.0
Package Id
inject-body-webpack-plugin@1.3.0
Unpacked Size
13.49 kB
Size
4.82 kB
File Count
6
NPM Version
7.11.2
Node Version
16.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.
1npm install --save-dev inject-body-webpack-plugin@^1.3.0
1yarn add --dev inject-body-webpack-plugin@^1.3.0
webpack.config.babel.js
1import HtmlWebpackPlugin from "html-webpack-plugin" 2import InjectBodyPlugin from "inject-body-webpack-plugin" 3 4export default { 5 plugins: [ 6 new HtmlWebpackPlugin({ 7 templateContent: "<html><body></body></html>" 8 }), 9 new InjectBodyPlugin({ 10 content: '<main id=root>Hi!</main>' 11 }), 12 ], 13}
index.html
1<html><body><main id=root>Hi!</main></body></html>
Type | Default | Info | |
---|---|---|---|
content | string | <div id=root/> | The text that will be inject into the final HTML output. |
position | string | start | If “start”, the content will be injected as close to the body opening tag as possible. If “end”, the content will be injected as close to the body ending tag as possible. |
Setting up:
1git clone git@github.com:jaid/inject-body-webpack-plugin.git 2cd inject-body-webpack-plugin 3npm install
Testing in production environment:
1npm run test
MIT License
Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
99 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More