Skip to content
PluginStats

template-extract-plugin weekly downloads statistics

By BobbyLH · npm · Webpack plugins

Extract a template which with css style tag from html-webpack-plugin result

View on npm Stale · Oct 17, 2026

template-extract-plugin has 5 recorded weekly downloads on npm, a decrease of 91.7% over the past 30 days, ranking #2047 of 2,256 tracked listings.

Weekly downloads
5
Official API · Oct 17, 2026
7-day growth
+66.7%
+2 weekly downloads
30-day growth
-91.7%
-55 weekly downloads
90-day growth
-77.3%
-17 weekly downloads
Rank
#2047
Among tracked npm listings

About template-extract-plugin

template-extract-plugin(webpack模板抽取插件)

初衷

为了解决前端分享截图痛点,旨在项目 webpack 打包阶段,提取出分享DOM的信息。

从 html-webpack-plugin 中提取 css 和 html,并全局输出 get_extract_template 方法,获取相应的模板。

Note:插件强依赖 html-webpack-plugin,请确保项目中已经安装

使用

安装

项目配置

步骤 1:在 index.html/ejs 中添加模板注释

• style 标签插入的位置 • 动态DOM插入的位置 • JS代码插入的位置 • 需要移除的代码块起始标志 • 需要移除的代码块结束标志

也可通过配置Plugin的参数,指定js插入的位置

步骤 2: 配置你的 webpack.config.js

Note:插件强依赖 css-loader 和 html-webpack-plugin,请优先注册 html-webpack-plugin 保证顺序,注意 TemplateExtractPlugin.loader 和 css-loader 的顺序。

应用

在代码中获取(以React项目为例)

Note:如果你的静态资源 src 地址是自动获取 protocol 的方式(//cdn.xxx.com/image.jpg),可能你需要手动为其添加 protocol,以便它能在无头浏览器中正常执行。

Description from the npm listing.

  • webpack-plugin
  • webpack
  • plugin
  • template-extract-plugin

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

template-extract-plugin weekly downloads on npm, last 90 days: 5 weekly downloads as of Oct 17, 2026, -77.3% over 90 days.template-extract-pluginWeekly downloads on npm · Last 90 days5downloads / week-77.3% over 90 days050100150200250300350400Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
template-extract-plugin weekly downloads on npm, last 90 days: 5 weekly downloads as of Oct 17, 2026, -77.3% over 90 days.

7/30/90-day growth

template-extract-plugin weekly downloads growth on npm: +66.7% over 7 days, -91.7% over 30 days, -77.3% over 90 days.template-extract-pluginWeekly downloads growth on npm5downloads / week now7-day growth+2 weekly downloads+66.7%30-day growth-55 weekly downloads-91.7%90-day growth-17 weekly downloads-77.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
template-extract-plugin weekly downloads growth on npm: +66.7% over 7 days, -91.7% over 30 days, -77.3% over 90 days.

Ranking history

template-extract-plugin npm ranking history: currently #2047 (by weekly downloads).template-extract-pluginnpm ranking · by weekly downloads · Last 90 days#2047current rank#2040#2042#2044#2046#2048#2050Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
template-extract-plugin npm ranking history: currently #2047 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 103, #8 (overall #2,048)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins247 listings · 13 pages · page 12, #2 (overall #222)
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 (121)
Recent weekly downloads observations for template-extract-plugin
Date (UTC)Weekly downloadsChange vs. previous
50
5+4
10
1-1
20
2-2
4+1
3-2
5-2
7-1
8-1
90
9+1
8—

Similar npm Webpack plugins plugins

All 20 template-extract-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/template-extract-plugin. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.