You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/writing-a-plugin.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -315,11 +315,11 @@ plugin.postcss = true
315
315
Second argument also have `result` object to add warnings:
316
316
317
317
```js
318
-
Declaration: {
319
-
bad: (decl, { result }) => {
320
-
decl.warn(result, 'Deprecated property bad')
321
-
}
322
-
}
318
+
Declaration: {
319
+
bad: (decl, { result }) => {
320
+
decl.warn(result, 'Deprecated property bad')
321
+
}
322
+
}
323
323
```
324
324
325
325
If your plugin depends on another file, you can attach a message to `result`
@@ -393,9 +393,7 @@ Don’t afraid to ask in [special channel](https://github.com/orgs/postcss/discu
393
393
394
394
## Step 6: Make it public
395
395
396
-
When your plugin is ready, call `npx clean-publish` in your repository.
397
-
[`clean-publish`] is a tool to remove development configs from the npm package.
398
-
We added this tool to our plugin boilerplate.
396
+
Publish npm package with your new PostCSS plugin using [our guide](https://evilmartians.com/chronicles/the-secure-way-to-release-an-npm-package) with techniques to protect against supply chain attacks.
399
397
400
398
Write a tweet about your new plugin (even if it is a small one) with
401
399
[`@postcss`] mention. Or tell about your plugin in [our chat].
0 commit comments