Skip to content

yomonah/react-demo

Repository files navigation

Author: mia yu [personal blog: http://www.jianshu.com/u/b344d2977570]

Getting Started

#How to run project:

npm install 
npm run dev

visit: http://localhost:3000 The default port is 3000, but you can change port in webpack.config.js file

#How to build project

npm run dist

It will generate a dist folder.

#如何跑工程

npm install 
npm run dev

访问:http://localhost:3000 工程默认端口是3000,你可以到webpack.config.js中改变端口号,或设置ip访问

#如何打包工程

npm run dist

工程会打包生成一个dist文件夹,所有资源都在里面