- Webpack 2
- Transpiles
.jsfiles using Babel (settings in.babelrc) - Transpiles
.scssfiles using node-sass - ESLint - Lints
jsfiles on changes (rules in.eslintrc) - Stylelint - Lints
scssfiles on changes (rules in.stylelintrc) - PostCSS plugins (settings in
postcss.config.js)- Autoprefixer (supported browsers list in
browserslistfile)
- Autoprefixer (supported browsers list in
- Dynamic
index.htmlgeneration - Dynamic build file names with hash for cache busting
- Transpiles
- React
- React Hot Loader v3
- React Router v4
- HTML5 History API (non hash routes)
-
Install Node.js
- From nodejs.org (All platforms)
- Or using Homebrew (Mac)
- Or any other package manager
-
Fork the repo and
git cloneit -
Install dependencies (at the root of the repo):
npm install
npm start
- Open
http://localhost:8080
npm run build
- Must use a server that redirects missing routes back to
index.html
cd dist/
live-server --entry-file=index.html