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

html-inline-css-webpack-plugin has 52,359 recorded weekly downloads on npm, a decrease of 12.3% over the past 30 days, ranking #766 of 3,247 tracked listings.

Weekly downloads
52,359
Official API · Dec 5, 2026
7-day growth
+11.7%
+5.5K weekly downloads
30-day growth
-12.3%
-7.3K weekly downloads
90-day growth
+71.6%
+21.9K weekly downloads
Rank
#766
▲ 8 in 7 days

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: 52,359 weekly downloads as of Dec 5, 2026, +71.6% over 90 days.html-inline-css-webpack-pluginWeekly downloads on npm · Last 90 days52,359downloads / week+71.6% over 90 days010K20K30K40K50K60K70KSep 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-css-webpack-plugin weekly downloads on npm, last 90 days: 52,359 weekly downloads as of Dec 5, 2026, +71.6% over 90 days.

7/30/90-day growth

html-inline-css-webpack-plugin weekly downloads growth on npm: +11.7% over 7 days, -12.3% over 30 days, +71.6% over 90 days.html-inline-css-webpack-pluginWeekly downloads growth on npm52,359downloads / week now7-day growth+5,491 weekly downloads+11.7%30-day growth-7,345 weekly downloads-12.3%90-day growth+21,851 weekly downloads+71.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
html-inline-css-webpack-plugin weekly downloads growth on npm: +11.7% over 7 days, -12.3% over 30 days, +71.6% over 90 days.

Ranking history

html-inline-css-webpack-plugin npm ranking history: currently #766 (by weekly downloads).html-inline-css-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#766current rank#700#720#740#760#780#800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
html-inline-css-webpack-plugin npm ranking history: currently #766 (by weekly downloads).

Listing placement

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

Listing placement

Webpack plugins349 listings · 18 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 (170)
Recent weekly downloads observations for html-inline-css-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
52,359-86
52,445+4.5K
47,993+1.9K
46,065+147
45,918+418
45,500-361
45,861-1K
46,868+249
46,619-5.2K
51,840-4.8K
56,661-1.2K
57,889-395
58,284-973
59,257—

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