.sync API
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 48/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- documentation
Research direction
Start with the README section covering the .sync API and review how its arguments are currently described. Add an example or two showing the expected .sync usage, including the empty-array case, and consider the issue resolved when a reader can follow the examples without encountering the reported confusion.
Written by the indexing model from the issue text.
Description
Just had a nasty issue that took .. a few hours of my life .. using .sync without anything passed, didn't realize an empty array was at least expected.
const plugin = require("tailwindcss/plugin");
const postcssJs = require("postcss-js");
const styles = require("../dist/styles");
module.exports = plugin(function ({ addComponents }) {
let postcssJsProcess;
postcssJsProcess = postcssJs.sync(); // ... []
result = postcssJsProcess(styles);
addComponents(result);
});
Any way to clarify the Readme a bit to add an example or two for .sync?
- Dominant language
- JavaScript
- Stars
- 667
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from postcss/postcss-js
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
postcss/postcss-js#69 · 7 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
postcss/postcss-js#64 · 3 comments ·
All issues in postcss/postcss-js
Similar issues
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-webui/open-webui#30750 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100