Skip to content
PluginStats

extract-css-assets-webpack-plugin weekly downloads statistics

By alibaba (2 listings) · npm · Webpack plugins

Extract network resources in css

View on npm Fresh · Oct 18, 2026

extract-css-assets-webpack-plugin has 592 recorded weekly downloads on npm, an increase of 10.4% over the past 30 days, ranking #1533 of 2,322 tracked listings.

Weekly downloads
592
Official API · Oct 18, 2026
7-day growth
+54.2%
+208 weekly downloads
30-day growth
+10.4%
+56 weekly downloads
90-day growth
+205%
+398 weekly downloads
Rank
#1533
Among tracked npm listings

About extract-css-assets-webpack-plugin

extract-css-assets-webpack-plugin

提取 css 文件中网络资源,将其本地化。

Required

  • webpack >= 4.0

Options

  • outputPath 默认值: "" 提取后的文件目录前缀
  • relativeCssPath 默认值: "" 提取的文件后相对于 css 的路径
  • forceLocal 默认值: false 是否 publicPath 为 http 网络路径时也强制生效

Usage

import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import ExtractCssAssetsPlugin from 'extract-css-assets-webpack-plugin';

module.exports = {
  entry: './index',
  output: {
    publicPath: '/',
  },
  module: {
    rules: [
      {
        test: /\.(png|jpg|gif)$/,
        use: [
          {
            loader: 'url-loader',
            options: {
              limit: 8192,
              name: 'assets/[hash].[ext]',
            },
          },
        ],
      },
      {
        test: /\.css$/,
        use: [MiniCssExtractPlugin.loader, 'css-loader'],
      },
    ],
  },
  plugins: [
    new MiniCssExtractPlugin({
      filename: 'css/[name].css',
      chunkFileName: 'css/[id].css',
    }),
    new ExtractCssAssetsPlugin({
      outputPath: 'assets/',
      relativeCssPath: '../', // 由于创建了 css 目录 则生成的图片相对于 css 目录则为 `'../'`
    }),
  ],
};

input:

body {
  color: red;
  background-image: url(//img.alicdn.com/tfs/TB1zSOZrFGWBuNjy0FbXXb4sXXa-1024-1024.png);
}

.b {
  background-image: url('./img.jpg');
}

@font-face {
  font-family: 'iconfont'; /* project id 377048 */
  src: url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.eot');
  src: url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.eot?#iefix') format('embedded-opentype'),
    url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.woff') format('woff'),
    url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.ttf') format('truetype'),
    url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.svg#iconfont') format('svg');
}

output:

body {
  color: red;
  background-image: url('/assets/cd7e3c88d4211a9b0b2335d1e417bb12.png');
}

.b {
  background-image: url(/assets/fcaa0cae8fcd6ecf465971d57fdeff85.jpg);
}

@font-face {
  font-family: 'iconfont'; /* project id 377048 */
  src: url('/assets/34032f039a2b3b449235ba9d307409ec.eot');
  src: url('/assets/34032f039a2b3b449235ba9d307409ec.eot?#iefix') format('embedded-opentype'),
    url('/assets/f7efc431f760b9e8a6125054c5f4a502.woff') format('woff'),
    url('/assets/3a70f449494ab666efaf24b72d563431.ttf') format('truetype'), url('/assets/b1b72dfa538406f3897c40ab412b4183.svg#iconfont')
      format('svg');
}

注意事项

  • 当 output.publicPath 设置为 http 网络路径,并且 forceLocal 未设置为 true 时,插件不工作。

Description from the npm listing.

  • webpack
  • webpack-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

extract-css-assets-webpack-plugin weekly downloads on npm, last 90 days: 592 weekly downloads as of Oct 18, 2026, +205% over 90 days.extract-css-assets-webpack-pluginWeekly downloads on npm · Last 90 days592downloads / week+205% over 90 days0100200300400500600700Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
extract-css-assets-webpack-plugin weekly downloads on npm, last 90 days: 592 weekly downloads as of Oct 18, 2026, +205% over 90 days.

7/30/90-day growth

extract-css-assets-webpack-plugin weekly downloads growth on npm: +54.2% over 7 days, +10.4% over 30 days, +205% over 90 days.extract-css-assets-webpack-pluginWeekly downloads growth on npm592downloads / week now7-day growth+208 weekly downloads+54.2%30-day growth+56 weekly downloads+10.4%90-day growth+398 weekly downloads+205%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
extract-css-assets-webpack-plugin weekly downloads growth on npm: +54.2% over 7 days, +10.4% over 30 days, +205% over 90 days.

Ranking history

extract-css-assets-webpack-plugin npm ranking history: currently #1533 (by weekly downloads).extract-css-assets-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#1533current rank#1510#1515#1520#1525#1530#1535Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
extract-css-assets-webpack-plugin npm ranking history: currently #1533 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 77, #16 (overall #1,536)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins251 listings · 13 pages · page 4, #5 (overall #65)
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 extract-css-assets-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
592+186
406-72
478+38
440-58
498-40
5380
538+154
384+38
346+37
309+48
261-5
266-169
435-117
552—

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