Minimal build setup using Webpack, Babel (ES6-support), SCSS and ESLint.
This starter kit is made so you can quickly write small prototypes using JavaScript and SCSS.
- Download kit to your computer. Run in terminal:
git clone https://github.com/kevinweber/minimal-starter-kit.git - Navigate into the root folder of the downloaded kit:
cd minimal-starter-kit/ - If you don't have NPM on your machine yet, install it: https://docs.npmjs.com/getting-started/installing-node
- Run
npm installto install dependencies. - Run
npm startto bundle JavaScript and SCSS. - Open
dist/index.htmlin your browser (e.g. by runningnpm run open).
- NPM for managing packages and running tasks.
- Babel so you can utilize the latest JavaScript features.
- SCSS for convenience. (You can still write basic CSS in a SCSS file.)
- ESLint to ensure basic code quality.
- Webpack for compiling and bundling everything.
- Task:
npm startbundles JS and SCSS into two separate files. - Task:
npm run watchbundles JS and SCSS whenever a JS or SCSS file changes. - Task:
npm run productionbundles, minifies and optimizes everything.
- Yarn
- React/JSX or other libraries
- Express server
- LiveReload/BrowserSync
... to keep the build setup simple and easily adjustable for individual needs.