postcss-jongleberry

My personal bundle of PostCSS middleware

Usage no npm install needed!

<script type="module">
  import postcssJongleberry from 'https://cdn.skypack.dev/postcss-jongleberry';
</script>

README

postcss-jongleberry

NPM version Build status Test coverage Dependency Status License Downloads

My personal PostCSS bundle because I'm tired of require()ing all the packages everywhere. Includes:

API

return require('postcss')(require('postcss-jongleberry')({
  minify: process.env.NODE_ENV === 'production',
}))
.process(input, {
  from: `input.css`,
  to: `output.css`,
})
.then(result => {
  console.log(result.css)
})

const middleware = postcssJongleberry(options)

Returns an array of middleware to be passed to postcss(). The options are:

  • minify = process.env.NODE_ENV === 'production' - whether to minify the CSS with cssnano