esbuild-postcss
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

esbuild-postcss

npm version Node.js CI License: MIT

Seamless integration between esbuild and PostCSS.

Installation

npm i postcss esbuild-postcss -D

or

yarn add postcss esbuild-postcss --dev

Usage

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.

Licence

MIT

Readme

Keywords

Package Sidebar

Install

npm i esbuild-postcss

Weekly Downloads

9,620

Version

0.0.4

License

MIT

Unpacked Size

8.42 kB

Total Files

7

Last publish

Collaborators

  • karolis.sarapnickis