Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Commit 0b6e1bc

Browse files
committed
Update readme
1 parent afccfb7 commit 0b6e1bc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@
1313
[Webpack](https://github.com/webpack/webpack) plugin to remove unused css.
1414

1515
## Install
16-
1716
```sh
1817
npm i purgecss-webpack-plugin -D
19-
20-
# or webpack 3
21-
npm i purgecss-webpack-plugin@0.23.0 -D
2218
```
2319

2420
## Usage
@@ -28,7 +24,7 @@ npm i purgecss-webpack-plugin@0.23.0 -D
2824
```js
2925
const path = require('path')
3026
const glob = require('glob')
31-
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
27+
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
3228
const PurgecssPlugin = require('purgecss-webpack-plugin')
3329

3430
const PATHS = {
@@ -69,7 +65,7 @@ module.exports = {
6965
filename: "[name].css"
7066
}),
7167
new PurgecssPlugin({
72-
paths: glob.sync(`${PATHS.src}/*`, { nodir: true })
68+
paths: glob.sync(`${PATHS.src}/**/*`, { nodir: true })
7369
})
7470
]
7571
}

0 commit comments

Comments
 (0)