Skip to content

quentinyang/webpack-react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-react示例

webpack-react-app是为了演示将webpack-react用在项目里而创建的。webpack-react现在还处于开发状态,有很多问题还在解决种。要访问webpack-react请访问webpack-react

使用步骤

  1. 拉取代吗到本地git clone https://github.com/quentinyang/webpack-react-app.git

  2. 进入webpack-react-app目录,然后安装依赖

    cd webpack-react-app
    npm install
    
  3. 执行npm start编译文件

  4. 访问本地index.html文件

应用目录分析

webpack-react-app/
├── app
│   ├── foo.app.js
│   └── indexApp.js
├── component
│   ├── index.css
│   └── index.js
├── index.html
├── package.json
└── tests
    ├── test-dir-app.js
    └── test-dir.js

  1. app目录是webpack-react的默认构建入口。
  2. package.json里面的依赖跟webpack-react一致,并且多了一项webpack-react
  3. TODO

运维部署

新环境部署

部署依赖pm2

  1. 全局安装pm2

    npm install pm2 -g
    
  2. 启动应用

    pm2 start app.js
    

参考资料

  1. 进程管理PM2
  2. Koa框架

About

Application example for webpack-react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published