- Webpack 4
- Transpiles
.jsfiles using Babel 7 (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) - cssnano - To compress the resulting CSS
- Autoprefixer (supported browsers list in
- Dynamic
index.htmlgeneration - Dynamic build file names with hash for cache busting
- Automatically builds a
vendorbundle with all packages imported fromnode_modules
- Transpiles
- React
- React Hot Loader v4 - Simplified hot reloading setup
- React Router v4
- HTML5 History API (non hash routes)
-
Install Node.js (choose Current)
- From nodejs.org (All platforms)
- Or using Homebrew (Mac)
- Or any other package manager
-
git cloneor Download this repo- If using clone, remove the
.gitfolder and init a new Git repo (name it something else)
- If using clone, remove the
-
Update the README to your needs
-
Install dependencies (at the root of the repo):
npm install
npm start
- Open
http://localhost:8080
npm run build
- Must use a server that serves missing routes as
index.html
npm i -g serve
serve -s dist