Skip to content
PluginStats

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

By Runjuu · npm · Webpack plugins

☄️ A webpack plugin for convert external stylesheet to embedded stylesheet, aka document stylesheet

View on npm Fresh · Oct 18, 2026

html-inline-css-webpack-plugin has 24,653 recorded weekly downloads on npm, a decrease of 22.1% over the past 30 days, ranking #738 of 2,322 tracked listings.

Weekly downloads
24,653
Official API · Oct 18, 2026
7-day growth
-48.5%
-23.2K weekly downloads
30-day growth
-22.1%
-7K weekly downloads
90-day growth
-37.4%
-14.7K weekly downloads
Rank
#738
Among tracked npm listings

About html-inline-css-webpack-plugin

html-inline-css-webpack-plugin

MIT Licence PRs Welcome Total downloads npm version

Convert external stylesheet to embedded stylesheet, aka document stylesheet.

<link rel="stylesheet" /> => <style>...<style/>

Require mini-css-extract-plugin and html-webpack-plugin

Install

NPM
npm i html-inline-css-webpack-plugin -D
Yarn
yarn add html-inline-css-webpack-plugin -D

Minimal example

const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HTMLInlineCSSWebpackPlugin = require("html-inline-css-webpack-plugin").default;

module.exports = {
  plugins: [
    new MiniCssExtractPlugin({
      filename: "[name].css",
      chunkFilename: "[id].css"
    }),
    new HtmlWebpackPlugin(),
    new HTMLInlineCSSWebpackPlugin(),
  ],
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          MiniCssExtractPlugin.loader,
          "css-loader"
        ]
      }
    ]
  }
}

Config

interface Config {
  filter?: (fileName: string) => boolean
  styleTagFactory?: (params: { style: string }) => string
  leaveCSSFile?: boolean
  replace?: {
    target: string
    position?: 'before' | 'after'
    removeTarget?: boolean
  }
}
filter(optional)
filter?: (fileName: string) => boolean

Return true to make current file internal, otherwise ignore current file. Include both css file and html file name.

example
...
new HTMLInlineCSSWebpackPlugin({
  filter(fileName) {
    return fileName.includes('main');
  },
}),
...
styleTagFactory(optional)
styleTagFactory?: (params: { style: string }) => string

Used to customize the style tag.

example
...
  new HTMLInlineCSSWebpackPlugin({
    styleTagFactory({ style }) {
      return `<style type="text/css">${style}</style>`;
    },
  }),
...
leaveCSSFile(optional)

if true, it will leave CSS files where they are when inlining

replace(optional)
replace?: {
  target: string
  position?: 'before' | 'after' // default is 'before'
  removeTarget?: boolean // default is false
}

A config for customizing the location of injection, default will add internal style sheet before the </head>

target

A target for adding the internal style sheet

position(optional)

Add internal style sheet before/after the target

removeTarget(optional)

if true, it will remove the target from the output HTML

Please note that HTML comment is removed by default by the html-webpack-plugin in production mode. #16

example
<head>
    <!-- inline_css_plugin -->
    <style>
        /* some hard code style */
    </style>
</head>
...
  new HTMLInlineCSSWebpackPlugin({
    replace: {
      removeTarget: true,
      target: '<!-- inline_css_plugin -->',
    },
  }),
...
output:
<head>
    <style>
        /* style from *.css files */
    </style>
    <style>
        /* some hard code style */
    </style>
</head>

Description from the npm listing.

  • webpack
  • webpack4
  • webpack5
  • webpack-plugin
  • inline
  • internal
  • embedded
  • document
  • css
  • style
  • stylesheet

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-css-webpack-plugin weekly downloads on npm, last 90 days: 24,653 weekly downloads as of Oct 18, 2026, -37.4% over 90 days.html-inline-css-webpack-pluginWeekly downloads on npm · Last 90 days24,653downloads / week-37.4% over 90 days010K20K30K40K50K60KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
html-inline-css-webpack-plugin weekly downloads on npm, last 90 days: 24,653 weekly downloads as of Oct 18, 2026, -37.4% over 90 days.

7/30/90-day growth

html-inline-css-webpack-plugin weekly downloads growth on npm: -48.5% over 7 days, -22.1% over 30 days, -37.4% over 90 days.html-inline-css-webpack-pluginWeekly downloads growth on npm24,653downloads / week now7-day growth-23,219 weekly downloads-48.5%30-day growth-6,979 weekly downloads-22.1%90-day growth-14,735 weekly downloads-37.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
html-inline-css-webpack-plugin weekly downloads growth on npm: -48.5% over 7 days, -22.1% over 30 days, -37.4% over 90 days.

Ranking history

html-inline-css-webpack-plugin npm ranking history: currently #738 (by weekly downloads).html-inline-css-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#738current rank#700#705#710#715#720#725#730#735#740Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
html-inline-css-webpack-plugin npm ranking history: currently #738 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 37, #19 (overall #739)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins251 listings · 13 pages · page 1, #17 (overall #17)
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-css-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
24,653+395
24,258-2.2K
26,464+1.1K
25,381-13.1K
38,511-10.1K
48,6130
48,613+741
47,872+1K
46,858+1.5K
45,371+4.7K
40,646+1.4K
39,211+33
39,178-9.7K
48,861—

Similar npm Webpack plugins plugins

All 20 html-inline-css-webpack-plugin alternatives

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-css-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.