nhaoday.vn
- install webpack npm install webpack babel-loader babel-core babel-preset-es2015 babel-preset-react --save-dev
- install express npm install express --save
- install react npm install react react-dom --save-dev
- Use webpack to build webpack ./client/index.js ./bundle.js --module-bind 'js=babel-loader?{"presets": ["es2015","react"]}'
- Add webpack config touch webpack.config.js
- install less and loader npm install less less-loader style-loader css-loader --save-dev
- install babel-cli npm install babel-cli -g
- install extract-text-webpack-plugin npm install extract-text-webpack-plugin --save-dev
- install express-handlebars npm install express-handlebars --save
- install redux npm install redux react-redux --save
- install webpack-dev-server react-hot-loader npm install webpack-dev-server react-hot-loader --save-dev