@unifycss/webpack weekly downloads statistics
By unifycss · npm · Webpack plugins
Webpack 5+ plugin & loader for UnifyCSS build pipelines
@unifycss/webpack has 18 recorded weekly downloads on npm, an increase of 350% over the past 30 days, ranking #3019 of 3,247 tracked listings.
About @unifycss/webpack
@unifycss/webpack
Official Webpack 5 plugin for UnifyCSS — integrates UnifyCSS class scanning and CSS generation into your Webpack build pipeline.
</div>Table of Contents
- Installation
- Quick Start
- Configuration
- Framework Setup Guides
- Plugin Options Reference
- CSS Purging in Production
- License
Installation
npm install @unifycss/webpack @unifycss/core -D
# or
pnpm add @unifycss/webpack @unifycss/core -D
# or
yarn add @unifycss/webpack @unifycss/core -D
Quick Start
// webpack.config.js
const { UnifyCSSWebpackPlugin } = require('@unifycss/webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.ts',
output: {
path: __dirname + '/dist',
filename: 'bundle.js',
},
plugins: [
new HtmlWebpackPlugin({ template: './src/index.html' }),
new UnifyCSSWebpackPlugin({
configPath: './unifycss.config.js',
}),
],
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
],
},
};
In your entry JS/TS file:
// src/index.ts
import '@unifycss/unifycss/unifycss.css';
Configuration
Create unifycss.config.js in your project root:
// unifycss.config.js
/** @type {import('@unifycss/core').Config} */
module.exports = {
content: [
'./src/**/*.{html,js,ts,jsx,tsx}',
'./public/**/*.html',
],
safelist: [
'btn-primary',
'btn-danger',
/^alert-/,
],
theme: {
extend: {
colors: {
brand: { primary: '#7c3aed' },
},
},
},
purge: process.env.NODE_ENV === 'production',
};
Framework Setup Guides
React (webpack-based)
If you're using a custom Webpack setup with React (not Create React App):
npm install @unifycss/webpack @unifycss/core webpack webpack-cli babel-loader -D
// webpack.config.js
const { UnifyCSSWebpackPlugin } = require('@unifycss/webpack');
const path = require('path');
module.exports = {
entry: './src/index.tsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].[contenthash].js',
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
},
module: {
rules: [
{
test: /\.(ts|tsx|js|jsx)$/,
exclude: /node_modules/,
use: 'babel-loader',
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
],
},
plugins: [
new UnifyCSSWebpackPlugin({
configPath: './unifycss.config.js',
purge: process.env.NODE_ENV === 'production',
}),
],
};
// src/index.tsx
import '@unifycss/unifycss/unifycss.css';
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
Next.js Custom Webpack
Extend Next.js's Webpack config in next.config.ts:
// next.config.ts
import type { NextConfig } from 'next';
import { UnifyCSSWebpackPlugin } from '@unifycss/webpack';
const nextConfig: NextConfig = {
webpack(config) {
config.plugins.push(
new UnifyCSSWebpackPlugin({
configPath: './unifycss.config.js',
purge: process.env.NODE_ENV === 'production',
})
);
return config;
},
};
export default nextConfig;
Simpler alternative: Use
@unifycss/nextjsfor a zero-config Next.js integration.
Angular CLI Custom Webpack
npm install @angular-builders/custom-webpack @unifycss/webpack -D
// webpack.extra.config.js
const { UnifyCSSWebpackPlugin } = require('@unifycss/webpack');
module.exports = {
plugins: [
new UnifyCSSWebpackPlugin({
configPath: './unifycss.config.js',
}),
],
};
// angular.json — use custom-webpack builder
{
"architect": {
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./webpack.extra.config.js"
}
}
}
}
}
Standalone Webpack 5 Project
mkdir my-app && cd my-app
npm init -y
npm install webpack webpack-cli html-webpack-plugin style-loader css-loader
npm install @unifycss/webpack @unifycss/core @unifycss/unifycss -D
// webpack.config.js
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { UnifyCSSWebpackPlugin } = require('@unifycss/webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const isProd = process.env.NODE_ENV === 'production';…
Description from the npm listing.
- unifycss
- webpack
- webpack-plugin
- webpack-loader
- css-loader
- css-extraction
- bundle-optimization
- tree-shaking
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 @unifycss/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/@unifycss/webpack. First seen Nov 23, 2026; last successful collection Dec 6, 2026. See the methodology.