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 Fresh · Dec 6, 2026

html-inline-script-webpack-plugin has 79,637 recorded weekly downloads on npm, a decrease of 12.6% over the past 30 days, ranking #679 of 3,247 tracked listings.

Weekly downloads
79,637
Official API · Dec 5, 2026
7-day growth
+24.0%
+15.4K weekly downloads
30-day growth
-12.6%
-11.5K weekly downloads
90-day growth
-17.9%
-17.4K weekly downloads
Rank
#679
▲ 31 in 7 days

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: 79,637 weekly downloads as of Dec 5, 2026, -17.9% over 90 days.html-inline-script-webpack-pluginWeekly downloads on npm · Last 90 days79,637downloads / week-17.9% over 90 days050K100K150K200K250KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
html-inline-script-webpack-plugin weekly downloads on npm, last 90 days: 79,637 weekly downloads as of Dec 5, 2026, -17.9% over 90 days.

7/30/90-day growth

html-inline-script-webpack-plugin weekly downloads growth on npm: +24.0% over 7 days, -12.6% over 30 days, -17.9% over 90 days.html-inline-script-webpack-pluginWeekly downloads growth on npm79,637downloads / week now7-day growth+15,422 weekly downloads+24.0%30-day growth-11,527 weekly downloads-12.6%90-day growth-17,378 weekly downloads-17.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
html-inline-script-webpack-plugin weekly downloads growth on npm: +24.0% over 7 days, -12.6% over 30 days, -17.9% over 90 days.

Ranking history

html-inline-script-webpack-plugin npm ranking history: currently #679 (by weekly downloads).html-inline-script-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#679current rank#450#500#550#600#650#700#750Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
html-inline-script-webpack-plugin npm ranking history: currently #679 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 34, #19 (overall #679)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 1, #14 (overall #14)
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 (170)
Recent weekly downloads observations for html-inline-script-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
79,637+708
78,929+7.4K
71,573+4.6K
66,938+2.4K
64,578+2.6K
62,010-140
62,150-2.1K
64,215-328
64,543-6.5K
71,044-9.8K
80,842-3.2K
84,019-1.1K
85,081-2.1K
87,225—

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 Dec 6, 2026. See the methodology.