Gathering detailed insights and metrics for @insanecoding/inline-manifest-webpack-plugin
Gathering detailed insights and metrics for @insanecoding/inline-manifest-webpack-plugin
Gathering detailed insights and metrics for @insanecoding/inline-manifest-webpack-plugin
Gathering detailed insights and metrics for @insanecoding/inline-manifest-webpack-plugin
inline your webpack manifest (runtime code) with a script tag to save http request
npm install @insanecoding/inline-manifest-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
2 Stars
29 Commits
1 Forks
3 Branches
1 Contributors
Updated on Jun 03, 2021
Latest Version
1.0.0
Package Id
@insanecoding/inline-manifest-webpack-plugin@1.0.0
Unpacked Size
8.62 kB
Size
3.25 kB
File Count
7
NPM Version
6.13.4
Node Version
12.16.1
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
1
1
This is a webpack plugin that inline your manifest.js with a script tag to save http request. Cause webpack's runtime always change between every build, it's better to split the runtime code out for long-term caching.
Install the plugin with npm:
1$ npm i inline-manifest-webpack-plugin -D
This plugin need to work with webpack v4 (for webpack v3 and below, pls use version 3) and HtmlWebpackPlugin v3 :
Step1: split out the runtime code
1// the default name is "runtime" 2optimization: { 3 runtimeChunk: 'single' 4 } 5 6// or specify another name 7optimization: { 8 runtimeChunk: { 9 name: 'another name' 10 } 11 } 12
Step2: add plugins:
1// this plugin need to put after HtmlWebpackPlugin 2[ 3 new HtmlWebpackPlugin(), 4 new InlineManifestWebpackPlugin() 5] 6 7or 8 9[ 10 new HtmlWebpackPlugin(), 11 // if you changed the runtimeChunk's name, you need to sync it here 12 new InlineManifestWebpackPlugin('another name') 13] 14
Done! This will replace the external script with inline code.
One more thing
if you use inject: false
in your HtmlWebpackPlugin
, you can access the runtime code like this:
1<%= htmlWebpackPlugin.files.runtime %> 2 3<% for (var chunk in htmlWebpackPlugin.files.chunks) { %> 4<script src="<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script> 5<% } %>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/29 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
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
13 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