Skip to content

Commit 8f84f5e

Browse files
authored
update api.md - corrected example to named import (#604)
instructions for importing purgecss are currently incorrect in esm example (i assumed this is left over from past api?), It should be a named export
1 parent 10443bc commit 8f84f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In the following examples, the options passed to PurgeCSS are the same as the on
3636

3737
### ES Module Import Syntax
3838
```javascript
39-
import PurgeCSS from 'purgecss'
39+
import { PurgeCSS } from 'purgecss'
4040
const purgeCSSResult = await new PurgeCSS().purge({
4141
content: ['**/*.html'],
4242
css: ['**/*.css']

0 commit comments

Comments
 (0)