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

broccoli-clean-css

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-clean-css

CSS minifier for Broccoli, using clean-css

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

broccoli-clean-css

NPM version Build Status Build status Coverage Status

clean-css plugin for Broccoli

a {
  color: #FF0000;
}

a {
  border-radius: 4px 4px 4px 4px;
}

a{color:red;border-radius:4px}

Installation

Use npm.

npm install --save-dev broccoli-clean-css

API

const BroccoliCleanCss = require('broccoli-clean-css');

class BroccoliCleanCss(node [, options])

node: String (directory path) or Object (Broccoli node)
options: Object (clean-css constructor options)

//Brocfile.js
const BroccoliCleanCss = require('broccoli-clean-css');

module.exports = new BroccoliCleanCss('path/to/styles');

There are some differences from the original clean-css:

  • rebaseTo option is regarded as relative to the Broccoli target path.
  • returnPromise option defaults to true and cannot be disabled.
  • All problems that clean-css considers as warnings, for example broken CSS syntax, are regarded as errors.

License

Copyright (c) 2014 - 2017 Shinnosuke Watanabe

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 22 Feb 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