Skip to content

Commit 3c4789e

Browse files
committed
0.14.0
1 parent f97b614 commit 3c4789e

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ See the [UnCSS](https://github.com/giakki/uncss) docs for more information.
1616

1717
## Installation
1818

19+
postcss-uncss specifies UnCSS as a [peerDependency](https://docs.npmjs.com/files/package.json#peerdependencies), so you will have to install UnCSS as well.
20+
1921
```bash
20-
npm install postcss-uncss
22+
npm install postcss-uncss uncss
2123
```
2224

25+
postcss-uncss' MAJOR & MINOR version numbers correspond to UnCSS' version numbers; however, the PATCH version number may differ.
26+
2327
## Usage
2428

2529
```js

index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
module.exports=require('uncss').postcssPlugin;
1+
try {
2+
module.exports=require('uncss').postcssPlugin;
3+
} catch (e) {
4+
console.error('An error was encountered in postcss-uncss; do you have uncss installed as a dependency?');
5+
console.error(e);
6+
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-uncss",
3-
"version": "0.0.1",
3+
"version": "0.14.0",
44
"description": "Use giakki/uncss as a postcss plugin",
55
"main": "index.js",
66
"scripts": {
@@ -20,7 +20,7 @@
2020
"url": "https://github.com/RyanZim/postcss-uncss/issues"
2121
},
2222
"homepage": "https://github.com/RyanZim/postcss-uncss#readme",
23-
"dependencies": {
24-
"uncss": "github:giakki/uncss#50cb679572d4723315f02c7e7fdbdaadf32021d0"
23+
"peerDependencies": {
24+
"uncss": "^0.14.0"
2525
}
2626
}

0 commit comments

Comments
 (0)