
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
gulp-dumber-css-module
Advanced tools
Gulp plugin for using CSS Module with dumber bundler.
// Can be used in chain after gulp-sass, gulp-less and gulp-postcss
const sass = require('gulp-sass');
const cssModule = require('gulp-dumber-css-module');
const gulp = require('gulp');
gulp.src('src/**/*.scss')
.pipe(sass())
.pipe(cssModule({ /* options */ }));
gulp-dumber-css-module simply wraps postcss-modules. You can pass all options it supports, except getJSON() which is handled internally by gulp-dumber-css-module.
For CSS foo.css:
.title {
color: green;
}
.article {
font-size: 16px;
}
CSS Module turns it into something like
._title_xkpkl_5 {
color: green;
}
._article_xkpkl_10 {
font-size: 16px;
}
With a mapping:
{
"title": "_title_xkpkl_5 _title_116zl_1",
"article": "_article_xkpkl_10"
}
Interoperable CSS (ICSS) defined that module foo.css should return that mapping object.
module.exports = {
"title": "_title_xkpkl_5 _title_116zl_1",
"article": "_article_xkpkl_10"
};
This gulp plugin is very simple, it uses postcss-modules to compile the source css file, then simply add mapping object inside a comment.
The source foo.css vinyl file will be updated with content:
._title_xkpkl_5 {
color: green;
}
._article_xkpkl_10 {
font-size: 16px;
}
/* dumber-css-module: {"title": "_title_xkpkl_5 _title_116zl_1", "article": "_article_xkpkl_10"} */
This css file will simply loaded by dumber as a text module text!foo.css.
The real magic happens at runtime.
When use load import styles from './foo.css';, the default implementation of ext:css plugin in dumber
text!foo.css module.MIT.
FAQs
Gulp plugin for using CSS Module with dumber bundler
The npm package gulp-dumber-css-module receives a total of 5 weekly downloads. As such, gulp-dumber-css-module popularity was classified as not popular.
We found that gulp-dumber-css-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.