New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-postcss-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-postcss-plugin

ESBuild plugin for PostCSS with CSS modules

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ESBuild plugin for PostCSS with CSS modules

This plugin for postcss built with intention to create fast, high-performance, reliable and tested solution to ESBuild with postcss and post-css modules

Installation

npm i esbuild-postcss-plugin

Usage

Add plugin to ESBuild build config

const postCSSPlugin = require("esbuild-postcss-plugin");

plugins: [postCSSPlugin()];

Options

filter

A regular expression to filter source files processed by plugin

Default: /\.css$/

postCSSPlugin({ filter: /\.css$/ });

disableCache

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 });

modulesFilter

A regular expression to filter source files processed with postcss-modules

Default: /\.module.css$/

postCSSPlugin({ modulesFilter: /\.module.css$/ })

modulesOptions

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$/],
  }
})

plugins

List of AcceptedPlugin for postcss.

Default: []

postCSSPlugin({
  plugins: [require("autoprefixer")]
})

Keywords

FAQs

Package last updated on 23 Jul 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc