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

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70K
decreased by-13.74%
Maintainers
1
Weekly downloads
 
Created
Source

broccoli-clean-css

NPM version Build Status Build status Coverage Status Dependency Status devDependency 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 i --save-dev broccoli-clean-css

API

var cleanCSS = require('broccoli-clean-css');

cleanCSS(tree [, options])

tree: String or Object (broccoli tree)
options: Object (directly passed to clean-css options)
Return: Function

Note that relativeTo option is relative to the source tree by default.

//Brocfile.js
var cleanCSS = require('broccoli-clean-css');

var app = 'styles';
app = cleanCSS(app);

module.exports = app;
options.strict

Type: Boolean
Default: false

If you set this option to true, build will be rejected when the CSS is corrupt.

License

Copyright (c) Shinnosuke Watanabe

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 16 Jan 2015

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