@btrb/postcss-plugin
Shared PostCSS plugin for Bridgetown sites
Installation
# npm
npm i --dev @btrb/postcss-plugin
# pnpm
pnpm add -D @btrb/postcss-plugin
# yarn
yarn add -D @btrb/postcss-plugin
Usage
How do you do the things??
Features
This plugin wraps around the following PostCSS transformations:
postcss-import
postcss-calc
postcss-flexbugs-fixes
postcss-selector-matches
postcss-will-change
autoprefixer
postcss-discard-comments
Options
This plugin accepts a single option, minimize
. Passing minimize: true
will turn on CSS minification via cssnano.