Skip to content

Commit

Permalink
0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Jul 9, 2016
1 parent f97b614 commit 3c4789e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ See the [UnCSS](https://github.com/giakki/uncss) docs for more information.

## Installation

postcss-uncss specifies UnCSS as a [peerDependency](https://docs.npmjs.com/files/package.json#peerdependencies), so you will have to install UnCSS as well.

```bash
npm install postcss-uncss
npm install postcss-uncss uncss
```

postcss-uncss' MAJOR & MINOR version numbers correspond to UnCSS' version numbers; however, the PATCH version number may differ.

## Usage

```js
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
module.exports=require('uncss').postcssPlugin;
try {
module.exports=require('uncss').postcssPlugin;
} catch (e) {
console.error('An error was encountered in postcss-uncss; do you have uncss installed as a dependency?');
console.error(e);
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-uncss",
"version": "0.0.1",
"version": "0.14.0",
"description": "Use giakki/uncss as a postcss plugin",
"main": "index.js",
"scripts": {
Expand All @@ -20,7 +20,7 @@
"url": "https://github.com/RyanZim/postcss-uncss/issues"
},
"homepage": "https://github.com/RyanZim/postcss-uncss#readme",
"dependencies": {
"uncss": "github:giakki/uncss#50cb679572d4723315f02c7e7fdbdaadf32021d0"
"peerDependencies": {
"uncss": "^0.14.0"
}
}

0 comments on commit 3c4789e

Please sign in to comment.