Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 18 days 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T17:04:22.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T17:43:58.302Z (about 1 month ago)
- Topics: esbuild, esbuild-plugin, postcss
- Language: JavaScript
- Homepage:
- Size: 813 KB
- Stars: 10
- Watchers: 2
- 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]
[![Node.js CI](https://github.com/karolis-sh/esbuild-postcss/actions/workflows/node.js.yml/badge.svg)](https://github.com/karolis-sh/esbuild-postcss/actions/workflows/node.js.yml)
[![License: MIT](https://img.shields.io/badge/license-mit-yellow.svg)](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