Seamless integration between esbuild and PostCSS.
npm i postcss esbuild-postcss -D
or
yarn add postcss esbuild-postcss --dev
const esbuild = require('esbuild');
const postcss = require('esbuild-postcss');
esbuild
.build({
entryPoints: ['style.css'],
bundle: true,
outdir: 'build',
plugins: [postcss()],
})
.catch(() => process.exit(1));
Type: string[]
Default: ['.css']
This plugin will process files ending with these extensions.