@stet-css/webpack weekly downloads statistics
By stet-css · npm · Webpack plugins
Webpack plugin for StetCSS
@stet-css/webpack has 254 recorded weekly downloads on npm, a change of +19.8% over the past 7 days, ranking #2429 of 3,247 tracked listings.
About @stet-css/webpack
@stet-css/webpack
Webpack plugin for StetCSS.
Installation
npm install @stet-css/webpack
Usage
import StetCSSPlugin from '@stet-css/webpack'
export default {
plugins: [
new StetCSSPlugin()
]
}
Client types
Add the client type reference when TypeScript source files import virtual:stet-utilities.css, virtual:stet-css-manifest, virtual:stet-css-emitted-globals, or ?stet-css-manifest modules:
/// <reference types="@stet-css/integration/client" />
Stylesheet entry
Import the default stylesheet from your application CSS so the plugin can replace it with generated StetCSS:
@import '@stet-css/core';
The plugin builds static CSS with no options: before each compilation it reads the classes from the project's own source files, following the entry's @source, @source not, @safelist and @blocklist, and writes the CSS through a virtual module. It works with style-loader and with CSS extraction.
- Entries can be
.css,.scssor.sassfiles (Sass entries compile with your project'ssass), including entries your app imports from outside the project root. - Files in
node_modulesand in common build output directories are not read; name them with@sourceto include them. Webpack's ownoutput.pathis never read, not even through@source, so emitted bundles cannot feed classes back. - In watch mode, editing any file the CSS reads rebuilds once. A newly created file that nothing imports is picked up on the next rebuild.
- Local stylesheets such as CSS Modules, and the
<style>blocks of.vuefiles loaded byvue-loader, can use@compose,@variantand@reference; they are lowered in place. In a<style scoped>block, the theme variables@referencebrings in stay on:root, and the keyframes they name take the component's scope id, as Vue names that block's own keyframes.VueLoaderPlugincan come before or after this plugin, and vue-loader'sexperimentalInlineMatchResource(needed withexperiments.css) works too. A<style>block is never a stylesheet entry: import@stet-css/corefrom a.css,.scssor.sassfile.
Options
new StetCSSPlugin({
adapters: [{
name: 'markdown-attributes',
test: /\.md$/,
async extract({ content }) {
// `{.fg:red .bold}` attribute lists
return [...content.matchAll(/\{\.([^}]*)\}/g)].flatMap((match) => match[1].split(/\s+\.?/))
}
}]
})
| Option | Type | Default | Description |
|---|---|---|---|
adapters | SourceAdapter[] | [] | Custom source adapters. For each file the class set reads, the first adapter whose test matches extracts its classes, custom ones before the built-in ones. |
adapters is the only option. Any other key throws and names adapters; a removed key such as mode, injectRuntime or scanner names its replacement, and class rules (@safelist, @blocklist, @source, @source not) go in the CSS entry. An adapter sees the files the class set reads: the project's source files and the entry's @source files. Scanner options passed straight to the plugin (new StetCSSPlugin({ safelist })) throw the same way.
See examples/webpack for a complete project setup.
Description from the npm listing.
- webpack
- plugin
- integration
- build tools
- css
- stetcss
- 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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (128)Similar npm Webpack plugins plugins
All 20 @stet-css/webpack alternativesData 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/@stet-css/webpack. First seen Nov 25, 2026; last successful collection Dec 6, 2026. See the methodology.