https://github.com/karolis-sh/esbuild-postcss
esbuild plugin for PostCSS support
https://github.com/karolis-sh/esbuild-postcss
esbuild esbuild-plugin postcss
Last synced: about 1 year ago
JSON representation
esbuild plugin for PostCSS support
- Host: GitHub
- URL: https://github.com/karolis-sh/esbuild-postcss
- Owner: karolis-sh
- License: mit
- Created: 2021-07-09T22:10:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T17:04:22.000Z (over 3 years ago)
- Last Synced: 2025-03-12T18:48:34.351Z (over 1 year ago)
- Topics: esbuild, esbuild-plugin, postcss
- Language: JavaScript
- Homepage:
- Size: 813 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# esbuild-postcss
[![npm version][package-version-badge]][package-version]
[](https://github.com/karolis-sh/esbuild-postcss/actions/workflows/node.js.yml)
[](https://opensource.org/licenses/MIT)
Seamless integration between [esbuild](https://esbuild.github.io/)
and [PostCSS](https://github.com/postcss/postcss).
## Installation
```bash
npm i postcss esbuild-postcss -D
```
or
```bash
yarn add postcss esbuild-postcss --dev
```
## Usage
```js
const esbuild = require('esbuild');
const postcss = require('esbuild-postcss');
esbuild
.build({
entryPoints: ['style.css'],
bundle: true,
outdir: 'build',
plugins: [postcss()],
})
.catch(() => process.exit(1));
```
## Options
### extensions
Type: `string[]`
Default: `['.css']`
This plugin will process files ending with these extensions.
[package-version-badge]: https://badge.fury.io/js/esbuild-postcss.svg
[package-version]: https://www.npmjs.com/package/esbuild-postcss