Vue.js question detail
What are remote presets?
You can share a preset with other developers by publishing it in a git repo. The repo can be published in either github, GitLab or BitBucket. The repo will contain below files,
- preset.json: The main file containing the preset data and it is required.
- generator.js: A generator that can inject or modify files in the project.
- prompts.js: A prompts file that can collect options for the generator.
You can apply
--presetoption to use remote presets while creating the project
# use preset from GitHub repo
vue create --preset username/repo my-project