Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

brunch/clean-css-brunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clean-css-brunch

Adds clean-css support to brunch.

The plugin will minify your CSS files.

Usage

Install the plugin via npm with npm install -S clean-css-brunch.

Options

See all possible options in the CleanCSS API.

To specify clean-css options, use config.plugins.cleancss object, for example:

module.exports = {
  plugins: {
    cleancss: {
      specialComments: 0,
      removeEmpty: true
    }
  }
};

Joined files can be ignored and be passed-through, using 'ignored' option:

module.exports = {
  plugins: {
    cleancss: {
      ignored: /non_minimize\.css/
    }
  }
};

License

The MIT License (MIT)