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

broccoli-resin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-resin

Broccoli wrapped Resin from topcoat.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

broccoli-resin Build Status

Broccoli wrapped Resin - A CSS Preprocessor on top of Rework

Install

$ npm install --save broccoli-resin

Usage

var resin = require('broccoli-resin');
// Feel free to pull in other rework plugins
var rework = require('rework')

tree = resin(tree, {
  // Tell it what browsers to prefix for
  browsers: ['last 1 version', 'ios', 'android 4'],

  // Add a namespace to your classes to avoid collisions
  namespace: 'myapp',

  // Add a license to the final output
  license: '// Copyright 2013 and stuff \n',

  // Generate sourecemaps for debugging
  debug: true,

  use: [rework.prefixSelectors('#myapp')]
});

API

resin(tree, opts)

Initialize a new resin with the given string of regular CSS. Optionally supply an object with options as the last argument.

Options

browsers

Type: Array Default: []

This is a list defined at ai/autoprefixer#browsers.

namespace

Type: String Default: ''

This namespace prefixes your classes on output so you can avoid collisions.

license

Type: String Default: ''

This is just a string that gets concatenated at the top of your file.

debug

Type: Boolean Default: False

This enables sourcemap support.

use

Type: Array Default: []

An array of rework plugins that you'd also like to run.

License

MIT © Alex Sexton

Thanks

Heavily cargo-culted from kevva/broccoli-rework

Keywords

FAQs

Package last updated on 17 Jun 2014

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