# ease-task-minify-css

> CSS minifier for Ease task runner.

Latest version **1.0.4** (published 2021-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install ease-task-minify-css
pnpm add ease-task-minify-css
yarn add ease-task-minify-css
bun add ease-task-minify-css
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-02-14 |
| First published | 2019-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ramtin Soltani |
| Maintainers | ramtinsoltani |
| Keywords | ease, task, runner, css, minifier, plugin |

## Links

- npm: https://www.npmjs.com/package/ease-task-minify-css
- Repository: https://github.com/chisel/ease-task-minify-css
- Homepage: https://github.com/chisel/ease-task-minify-css#readme
- Issues: https://github.com/chisel/ease-task-minify-css/issues
- npm.io page: https://npm.io/package/ease-task-minify-css

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.6
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.1.0
- [clean-css](https://npm.io/package/clean-css.md) ^5.0.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2021-02-14
- 1.0.3 — 2019-06-30
- 1.0.2 — 2019-06-30
- 1.0.1 — 2019-06-30
- 1.0.0 — 2019-06-30

## README

# Ease Task Runner CSS Minifier Plugin

This is a plugin for the [Ease task runner](https://github.com/chisel/ease). It uses the [clean-css](https://www.npmjs.com/package/clean-css) module to minify CSS files.

# Installation

```
npm install ease-task-minify-css --save-dev
```

**easeconfig.js:**
```js
const minifyCss = require('ease-task-minify-css');

module.exports = ease => {

  ease.install('minify-css', minifyCss, {});

};
```

# Configuration

This plugin takes a config object similar to [Clean CSS Options](https://www.npmjs.com/package/clean-css#constructor-options) while ignoring the property `returnPromise` and adding the following properties:
  - `dir`: Path to a directory containing all the SASS files, relative to `easeconfig.js`
  - `outDir`: Path to the output directory where the CSS files should be written, relative to `easeconfig.js`
  - `cleanOutDir`: Boolean indicating if the output directory should be emptied first

# Example

**easeconfig.js:**
```js
const minifyCss = require('ease-task-minify-css');

module.exports = ease => {

  ease.install('minify-css', minifyCss, {
    dir: 'css',
    outDir: 'css',
    cleanOutDir: false,
    compatibility: 'ie8',
    sourceMap: true
  });

  ease.job('minify-css-files', ['minify-css']);

};
```

**CLI:**
```
ease minify-css-files
```

---
_Source: https://npm.io/package/ease-task-minify-css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
