I am creating my own plugin on Adobe XD and i need to use Git command to clone or pull (By using SSH key) the files from my git repo. Whether it can be done. Kindly provide me with a solution(cloning should be done by webpack).
Asked
Active
Viewed 151 times
1 Answers
0
Webpack itself doesn't have any git related plugin that you can use. However, you can write your own wrapper script over Webpack and install one of the Node.js git client like git or simple-git which you can use.
Writing a Webpack plugin or custom loader is not very hard. This is generally the practice followed by framework CLI wrappers like create-react-app
, vue-cli
or angular-cli
.
To use, Webpack in a custom Node.js script, use this official guide.

Harshal Patil
- 17,838
- 14
- 60
- 126
-
Thank you and can i get any help or similar code to do that... Is there any link to proceed with – Naresh Apr 29 '21 at 16:07
-
@Naresh, There is no link as such. I have added links in the answer that can help you get started. Please consider the answer as accepted if it addresses your question – Harshal Patil Apr 29 '21 at 16:13