1.2.0 • Published 7 years ago

postcss-jongleberry v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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