提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
文章目录
前言
搭建一个前端项目的方式有两种:选择现成的项目模板、自己搭建项目骨架。
提示:以下是本篇文章正文内容,下面案例可供参考
一、现成模板
github上比较好的项目模板: 使用 git 直接克隆到本地即可
react-boilerplate => https://github.com/react-boilerplate/react-boilerplate
ant-design-pro => https://github.com/ant-design/ant-design-pro
vue-element-admin => https://github.com/PanJiaChen/vue-element-admin
react-starter-kit => https://github.com/bodyno/react-starter-kit
create-react-app
create-lila-app(我自己用的,哈哈) => https://github.com/senntyou/lila
二、使用命令行创建
这种方式需要安装相应的命令,然后由命令来创建项目。
以 create-react-app 为例:
安装命令:
npm ins