| Script | Description |
|---|---|
| npm run start | Start development build and server. App on http://127.0.0.1:3000/html/index.html |
| npm run build | Build production and output files to dist & server directories |
| npm run start-prod | Start production server. Needed run build first |
| npm run lint | Run eslint check |
| npm run fix | Run eslint check with --fix option |
We use postcss-sprites to generate sprites, it dependency on PhantomJS
PhantomJS download: http://phantomjs.org/download.html
Download the executable file for your os and put it to the $PATH
npm installPage component example: src/page/index/index.js
Create redux store
Fetch store on server/client
Create React element