Enjoy hand-writing your HTML? Keep it old-school with modern build tools. This boilerplate is a non-opinionated setup that makes it easier to write your own styling, scripts, and mark-up.
- Write SCSS and ES2015+ code in
src
and build minified, transpiled code for production indist
- Live reloading with webpack-dev-server
- ES5 transpilation, bundling, and minification
- SCSS transpilation, bundling, autoprefixing, and minification
- Automatic copying of HTML and static assets from
src
todist
folders - ESLint validation for Javascript files
- Clone and run
rm -rf .git
on Linux/macOS andrd /s /q .git
on Windows to remove the link to this git repository. Rungit init
to initialize your own repo. - Write all your ES2015+ Javascript code in
src/js
and SCSS styling insrc/style
. Store static assets insrc/static
. Organize HTML files the way you like. - Available commands:
npm run start:dev
: Run webpack-dev-server atlocalhost:7777
. Includes live reloading on any Javascript/SCSS/HTML changes.npm run build
: Build files to thedist
folder. Transpiles down to ES5 and bundles all JS intoall.min.js
. Transpiles SCSS to CSS and adds prefixing intoall.min.css
. Copies static assets and HTML over, and bundled CSS and JS gets added to HTML file.npm start
. Builds files and runs a local production server onlocalhost:8080
with http-server.