####安装依赖项
-
npm init, 自动生成package.json文件.
npm init
-
安装react和react-dom依赖.
npm install react react-dom --save
-
安装webpack, webpack-dev-server依赖.
npm install webpack webpack-dev-server --save-dev
-
安装babel依赖.
npm install babel-loader babel-core babel-preset-react babel-preset-es2015 --save-dev
-
安装less依赖.
npm install less --save-dev
-
安装jQuery.
npm install jQuery --save
####启动
-
npm run dev
-
打开localhost:8080