Skip to content

Commit e5cbce2

Browse files
committed
fix: update import statements for purgeCSSPlugin in documentation and source files
#1295
1 parent 4f6c4d9 commit e5cbce2

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

docs/guides/hugo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ If it's not already there, add `node_modules/` to your `.gitignore` file.
9393
Create a `postcss.config.js` file at the project root with these contents:
9494

9595
```js
96-
import { purgeCSSPlugin } from '@fullhuman/postcss-purgecss';
96+
import purgeCSSPlugin from '@fullhuman/postcss-purgecss';
9797
9898
const purgecss = purgeCSSPlugin({
9999
content: ["./hugo_stats.json"],

docs/plugins/postcss.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ npm i -D @fullhuman/postcss-purgecss postcss
4040
In `postcss.config.js`:
4141

4242
```js
43-
import { purgeCSSPlugin } from '@fullhuman/postcss-purgecss';
43+
import purgeCSSPlugin from '@fullhuman/postcss-purgecss';
4444

4545
module.exports = {
4646
plugins: [
@@ -54,7 +54,7 @@ module.exports = {
5454
Using PostCSS API:
5555

5656
```js
57-
import { purgeCSSPlugin } from '@fullhuman/postcss-purgecss';
57+
import purgeCSSPlugin from '@fullhuman/postcss-purgecss';
5858

5959
postcss([
6060
purgeCSSPlugin({

packages/postcss-purgecss/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,4 @@ const purgeCSSPlugin: postcss.PluginCreator<UserDefinedOptions> = function (
127127
};
128128
purgeCSSPlugin.postcss = true;
129129

130-
export default purgeCSSPlugin;
131-
export { purgeCSSPlugin };
130+
export default purgeCSSPlugin;

0 commit comments

Comments
 (0)