Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

jongleberry/postcss-jongleberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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