Custom Plugin (Functions) promise async
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17k
- Forks
- 3.4k
- Avg merge
- 7h 42m
- Merged PRs (30d)
- 26
Description
Hi, so i am using webpack, and created a custom function that returns path to image from manifest.json, as i have to wait until manifest.json is created, before i return something from function, i am using await, but it return promise object to less file. Is there a workaround to resolve the promise in less?
Contributor guide
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.
Research direction
Reproduce the custom Less function in the webpack setup, using the delayed manifest.json input, and inspect how the function result is passed into Less. No source file or test is named; done would require demonstrating support for promise-returning functions or documenting a confirmed workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100