Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-postcss

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-postcss

Postcss compiler for Broccoli

  • 3.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42K
increased by0.62%
Maintainers
1
Weekly downloads
 
Created
Source

broccoli-postcss

Travis Build Status npm version Coverage Status bitHound Overall Score

The broccoli-postcss plugin runs your css through postcss plugins of your choosing.

Installation

npm install --save-dev broccoli-postcss

Usage

var compileCSS = require('broccoli-postcss')
var outputTree = compileCSS(tree, options)

API

broccoliPostcss(tree, [options])

options
plugins

Type: array

A list of plugin objects to be used by Postcss (a minimum of 1 plugin is required). The supported object format is module: the plugin module itself, and options: an object of supported options for the given plugin.

map

Type: object Default: { inline: false, annotation: false }

An object of options to describe how Postcss should handle source maps.

Example

/* Brocfile.js */
var compileCSS = require('broccoli-postcss')
var cssnext = require('postcss-cssnext')

var options =  {
  plugins: [
    {
      module: cssnext,
      options: {
          browsers: ['last 2 version']
      }
    },
  ]
}

var outputTree = compileCSS('app/styles', options)
module.exports = outputTree

Keywords

FAQs

Package last updated on 19 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc