
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
esbuild-postcss-plugin
Advanced tools
This plugin for postcss built with intention to create fast, high-performance, reliable and tested solution to ESBuild with postcss and post-css modules
npm i esbuild-postcss-plugin
Add plugin to ESBuild build config
const postCSSPlugin = require("esbuild-postcss-plugin");
plugins: [postCSSPlugin()];
A regular expression to filter source files processed by plugin
Default: /\.css$/
postCSSPlugin({ filter: /\.css$/ });
Cache gives more speed on rebuild. Unfortunately, in cases when postcss transform result depends on other files, cache will cause incorrect behavior. For example, tailwindcss scans template files to build final CSS, and changes in templates require CSS cache invalidation.
Default: false
postCSSPlugin({ disableCache: true });
A regular expression to filter source files processed with postcss-modules
Default: /\.module.css$/
postCSSPlugin({ modulesFilter: /\.module.css$/ })
See postcss-modules package options: https://github.com/madyankin/postcss-modules
Warning! Loader, resolve and root options will be ignored.
Default: empty
postCSSPlugin({
modulesFilter: /\.css$/,
modulesOptions: {
globalModulePaths: [/index.css$/],
}
})
List of AcceptedPlugin for postcss.
Default: []
postCSSPlugin({
plugins: [require("autoprefixer")]
})
FAQs
ESBuild plugin for PostCSS with CSS modules
The npm package esbuild-postcss-plugin receives a total of 905 weekly downloads. As such, esbuild-postcss-plugin popularity was classified as not popular.
We found that esbuild-postcss-plugin 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

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.