postcss-jongleberry

1.2.0 • Public • Published

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

/postcss-jongleberry/

    Package Sidebar

    Install

    npm i postcss-jongleberry

    Weekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • jongleberry