Files
tldr/pages.zh/common/vue-init.md

16 lines
500 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# vue init
> Vue.js框架的遗留项目初始化子命令。
> 更多信息:<https://cli.vuejs.org/guide/creating-a-project.html#pulling-2-x-templates-legacy>。
- 使用默认模板之一创建新项目:
`vue init {{webpack|webpack-simple|browserify|browserify-simple|simple}} {{project_name}}`
- 使用本地模板创建新项目:
`vue init {{path/to/template_directory}} {{project_name}}`
- 使用GitHub上的模板创建新项目
`vue init {{username}}/{{repo}} {{project_name}}`