Skip to content
PluginStats

@fibrae/semi-webpack-plugin weekly downloads statistics

By fibrae · npm · Webpack plugins

webpack 5 plugin of Semi Design Next: replaces the CSS class prefix, controls the CSS cascade layer, removes style imports and customizes the style loaders.

View on npm Fresh · Dec 6, 2026

@fibrae/semi-webpack-plugin has 344 recorded weekly downloads on npm, a decrease of 42.4% over the past 30 days, ranking #2350 of 3,247 tracked listings.

Weekly downloads
344
Official API · Dec 5, 2026
7-day growth
+22.4%
+63 weekly downloads
30-day growth
-42.4%
-253 weekly downloads
90-day growth
—
Insufficient history
Rank
#2350
Among tracked npm listings

About @fibrae/semi-webpack-plugin

@fibrae/semi-webpack-plugin

简体中文

The webpack 5 build plugin of Semi Design Next (SemiWebpackPlugin), for webpack applications that use the Semi component packages. It replaces the CSS class prefix, controls whether styles are wrapped in @layer semi, removes the .css imports inside Semi packages (for Next.js), and lets you customize the style loader chain. @fibrae/semi-next builds on it.

Styles are customized through --semi-* CSS variables (see tokens) and your own unlayered CSS, which always wins over styles inside @layer semi. The plugin has no compile-time theme or variables options.

Installation

pnpm add -D @fibrae/semi-webpack-plugin

Peer dependency: webpack 5 (optional; at runtime the plugin takes the host's webpack through compiler.webpack, while the type declarations still reference webpack). Ships ESM only.

Usage

// webpack.config.mjs
import SemiWebpackPlugin from '@fibrae/semi-webpack-plugin';

export default {
    plugins: [
        new SemiWebpackPlugin({
            prefixCls: 'custom', // .semi-button -> .custom-button
        }),
    ],
};

Besides the default export, the package has the named type SemiWebpackPluginOptions and the loader functions semiScssLoader, semiPrefixLoader and semiSourceSuffixLoader.

Hosts that reference loaders by path (such as turbopack.rules in Next.js) get the loader files from subpath exports, for example require.resolve('@fibrae/semi-webpack-plugin/semi-omit-css-loader'):

SubpathPurpose
./semi-omit-css-loaderComments out .css imports in JS
./semi-prefix-loaderRewrites constants in env.js, such as BASE_CLASS_PREFIX, according to options.replacers
Options
OptionTypeDefaultDescription
prefixClsstringsemiCSS class prefix. Also rewrites BASE_CLASS_PREFIX in Semi's JS, including under omitCss.
cssLayerbooleantrueWhether compiled styles are wrapped in @layer semi { ... }. false outputs unlayered styles.
omitCssbooleanfalseRemoves the .css imports from JS under dist in Semi packages and stops compiling styles. Styles come from a full stylesheet the application imports.
extractCssOptions{ loader: string; loaderOptions?: any }NoneThe loader that extracts CSS (such as the mini-css-extract-plugin loader). Without it, style-loader is used.
overrideStylesheetLoaders(loaders: any[]) => any[]NoneReceives the default loader list (already including extractCssOptions) and returns a new list. Prefer appending your own loaders over removing or changing the defaults.

omitCss and cssLayer are mutually exclusive: with no styles compiled, cssLayer has nothing to act on, and passing both throws in the constructor. For an unlayered stylesheet, generate it with @fibrae/semi-scss-compile (semi-build-scss --no-layer) and keep its --prefix the same as prefixCls.

How it works
  1. Semi's JS imports the compiled .css. The plugin appends semi-source-suffix-loader to the JS under dist of the Semi framework packages (UI, AI, icons), which points those imports back to .scss.
  2. dist/**/*.scss uses [style-loader or extractCssOptions.loader, css-loader, semi-scss-loader]. semi-scss-loader compiles through the semi: Sass importer, with semi:theme coming from @fibrae/semi-foundation/theme/index.scss and $prefix from prefixCls.
  3. It gets the running webpack instance through compiler.webpack, so it works in Next.js, which bundles its own webpack.

Related packages

Development

webpack loads loaders by file path, so vp pack emits each source file as a separate dist file in unbundle mode.

  • pnpm --filter @fibrae/semi-webpack-plugin build: builds.
  • vp test run --project plugins packages/plugins/semi-webpack (from the repository root, after vp run --filter './packages/plugins/**' build): uses __tests__/webpack.test.ts to run fixture builds against the dist output (entry, vue-entry and ai-entry).

For general commands, see CONTRIBUTING.md at the repository root.

Description from the npm listing.

  • webpack
  • webpack-plugin
  • css-layer
  • semi-design
  • semi-design-next

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

@fibrae/semi-webpack-plugin weekly downloads on npm, last 90 days: 344 weekly downloads as of Dec 5, 2026.@fibrae/semi-webpack-pluginWeekly downloads on npm · Last 90 days344downloads / week02004006008001K1.2KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@fibrae/semi-webpack-plugin weekly downloads on npm, last 90 days: 344 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@fibrae/semi-webpack-plugin weekly downloads growth on npm: +22.4% over 7 days, -42.4% over 30 days, 90-day growth unavailable.@fibrae/semi-webpack-pluginWeekly downloads growth on npm344downloads / week now7-day growth+63 weekly downloads+22.4%30-day growth-253 weekly downloads-42.4%90-day growth+344 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@fibrae/semi-webpack-plugin weekly downloads growth on npm: +22.4% over 7 days, -42.4% over 30 days, 90-day growth unavailable.

Ranking history

@fibrae/semi-webpack-plugin npm ranking history: currently #2350 (by weekly downloads).@fibrae/semi-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2350current rank#1600#1700#1800#1900#2000#2100#2200#2300#2400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankDec 4, 2026 – Dec 6, 2026 · 3 observations · Updated Dec 5, 2026pluginstats.com
@fibrae/semi-webpack-plugin npm ranking history: currently #2350 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 118, #10 (overall #2,350)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 6, #14 (overall #114)
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 @fibrae/semi-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
344-141
485-5
490+186
304-2
306-2
308-6
314+33
281-17
298+3
295-31
326-181
507-169
676-334
1,010—

Similar npm Webpack plugins plugins

All 20 @fibrae/semi-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/@fibrae/semi-webpack-plugin. First seen Dec 4, 2026; last successful collection Dec 6, 2026. See the methodology.