FrontendDeveloper.in

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,

  1. preset.json: The main file containing the preset data and it is required.
  2. generator.js: A generator that can inject or modify files in the project.
  3. prompts.js: A prompts file that can collect options for the generator. You can apply --preset option to use remote presets while creating the project
# use preset from GitHub repo
vue create --preset username/repo my-project
Back to all Vue.js questions
Get LinkedIn Premium at Rs 399