Skip to content
PluginStats

html-inline-script-webpack-plugin weekly downloads statistics

By icelam · npm · Webpack plugins

A webpack plugin for converting external script files to inline script block. Requires 'html-webpack-plugin' to work.

View on npm Stale · Oct 18, 2026

html-inline-script-webpack-plugin has 54,592 recorded weekly downloads on npm, a decrease of 29.3% over the past 30 days.

Weekly downloads
54,592
Official API · Oct 18, 2026
7-day growth
-51.0%
-56.9K weekly downloads
30-day growth
-29.3%
-22.6K weekly downloads
90-day growth
-67.8%
-114.9K weekly downloads
Rank
—
Among tracked npm listings

About html-inline-script-webpack-plugin

HTML Inline Script Webpack Plugin for webpack (html-inline-script-webpack-plugin)

Latest version Download count Install size ci Package quality

NPM

A webpack plugin for converting external script files <script src="app.js"></script> to inline script block <script>...</script>. Requires html-webpack-plugin to work.

Inspired by react-dev-utils created by Facebook.

Install

Webpack5
npm i html-inline-script-webpack-plugin -D
Webpack4
npm i html-inline-script-webpack-plugin@^1 -D

Usage

By default, the plugin will convert all the external script files to inline script block, and remove the original script file from build assets.

const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlInlineScriptPlugin = require('html-inline-script-webpack-plugin');

module.exports = {
  plugins: [new HtmlWebpackPlugin(), new HtmlInlineScriptPlugin()],
};

Options

Below are lists of options supported by this plugin:

NameDescriptionType
scriptMatchPatternList of script files that should be processed and inject as inline script. This will be filtered using the output file name.RegExp[]
htmlMatchPatternList of HTML template files that should be processed by this plugin. Useful when you have multiple html-webpack-plugin initialized. This will be filtered using the options?.filename provided by html-webpack-plugin.RegExp[]
assetPreservePatternList of script files that should be preserved by this plugin after inserting them inline. This will be filtered using the output file name.RegExp[]

Here are some examples illustrating how to use these options:

Process only script files that have file name start with runtime~ and app~
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlInlineScriptPlugin = require('html-inline-script-webpack-plugin');

module.exports = {
  plugins: [
    new HtmlWebpackPlugin(),
    new HtmlInlineScriptPlugin({
      scriptMatchPattern: [/runtime~.+[.]js$/, /app~.+[.]js$/],
    }),
  ],
};
Process any script files but only have them inlined in index.html
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlInlineScriptPlugin = require('html-inline-script-webpack-plugin');

module.exports = {
  plugins: [
    new HtmlWebpackPlugin({
      filename: 'index.html',
      template: 'static/index.webos.html',
    }),
    new HtmlWebpackPlugin({
      filename: 'page2.html',
      template: 'page2.html',
    }),
    new HtmlInlineScriptPlugin({
      htmlMatchPattern: [/index.html$/],
    }),
  ],
};
Process script files that have file name start with runtime~ and app~ and inject only to index.html
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlInlineScriptPlugin = require('html-inline-script-webpack-plugin');

module.exports = {
  plugins: [
    new HtmlWebpackPlugin({
      filename: 'index.html',
      template: 'static/index.webos.html',
    }),
    new HtmlWebpackPlugin({
      filename: 'page2.html',
      template: 'page2.html',
    }),
    new HtmlInlineScriptPlugin({
      scriptMatchPattern: [/runtime~.+[.]js$/, /app~.+[.]js$/],
      htmlMatchPattern: [/index.html$/],
    }),
  ],
};
Process any script files but preserve main.js from build assets
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlInlineScriptPlugin = require('html-inline-script-webpack-plugin');

module.exports = {
  plugins: [
    new HtmlWebpackPlugin(),
    new HtmlInlineScriptPlugin({
      assetPreservePattern: [/main.js$/],
    }),
  ],
};
```…

Description from the npm listing.

  • webpack
  • webpack4
  • webpack5
  • webpack-plugin
  • html-webpack-plugin
  • inline
  • internal
  • embedded
  • source
  • inline-source
  • script
  • inline-script

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

html-inline-script-webpack-plugin weekly downloads on npm, last 90 days: 54,592 weekly downloads as of Oct 18, 2026, -67.8% over 90 days.html-inline-script-webpack-pluginWeekly downloads on npm · Last 90 days54,592downloads / week-67.8% over 90 days050K100K150K200K250KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 25, 2026 – Oct 18, 2026 · 86 observations · Updated Oc…pluginstats.com
html-inline-script-webpack-plugin weekly downloads on npm, last 90 days: 54,592 weekly downloads as of Oct 18, 2026, -67.8% over 90 days.

7/30/90-day growth

html-inline-script-webpack-plugin weekly downloads growth on npm: -51.0% over 7 days, -29.3% over 30 days, -67.8% over 90 days.html-inline-script-webpack-pluginWeekly downloads growth on npm54,592downloads / week now7-day growth-56,857 weekly downloads-51.0%30-day growth-22,630 weekly downloads-29.3%90-day growth-114,904 weekly downloads-67.8%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
html-inline-script-webpack-plugin weekly downloads growth on npm: -51.0% over 7 days, -29.3% over 30 days, -67.8% over 90 days.

Ranking history

html-inline-script-webpack-plugin npm ranking history: currently #574 (by weekly downloads).html-inline-script-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#574current rank#555#560#565#570#575#580Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
html-inline-script-webpack-plugin npm ranking history: currently #574 (by weekly downloads).

Listing placement

All npm2,422 listings · 122 pages · 1,213 shown · page 29, #14 (overall #574)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins258 listings · 13 pages · page 1, #10 (overall #10)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for html-inline-script-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
54,592+3.3K
51,274-5.1K
56,362+8.4K
47,932-24.8K
72,728-27.8K
100,5300
100,530-10.9K
111,449+175
111,274-1.1K
112,370-1.3K
113,622-3K
116,657+7.1K
109,573-22.8K
132,370—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/html-inline-script-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 22, 2026. See the methodology.