Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 662 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 662 Bytes

项目说明

本地环境安装

# 安装 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

代码编译与发布