generator-yc-web-cli
v1.0.13
Published
延长前端脚手架
Downloads
773
Maintainers
Readme
yc脚手架源代码
开始安装
首先确保自己已经安装了nodejs
然后安装yeoman
npm install yo -g
然后安装脚手架
npm install -g generator-yc-web-cli
在自己的空项目中运行:
yo yc-web-cli
然后使用以下命令启动服务:
npm run dev
本项目默认监听端口是8080,所以在浏览器输入 http://localhost:8080 就能看到效果了。
开发完成之后,对项目进行打包,使用以下命令:
npm run build