Skip to content

基于webpack、react全家桶项目基础架构(react、redux、react-router)

Notifications You must be signed in to change notification settings

maiguangyang/webpack-react

Repository files navigation

项目说明

本地环境安装

# 安装 NodeJS NPM
$ sudo apt-get install node npm -g

# 更新 NodeJS (Linux, OSX)
$ npm install -g n
$ n 6.2.2

# 更新 NPM
$ npm install -g npm

# 更新 NodeJS 6.2.2 或以上稳定版本
$ npm install -g n nrm
$ n use stable

# 使用淘宝源 或 cnpm 源
$ nrm use taobao

# 安装 webpack
$ npm install -g webpack

# 安装 node_modules
$ cd /path/to/project
$ npm install

Nginx 配置文件导入

# 生成 nginx 配置文件
$ ./bin/nginx
# 或者
$ npm run nginx


# 重启nginx
# Linux
$ sudo service nginx restart
# OSX
$ sudo brew services restart nginx

代码编译与发布

About

基于webpack、react全家桶项目基础架构(react、redux、react-router)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published