Skip to content

21joint/hola-header

Repository files navigation

Static HTML Webpack Boilerplate

Greenkeeper badge

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.

Features

  • Write SCSS and ES2015+ code in src and build minified, transpiled code for production in dist
  • 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 to dist folders
  • ESLint validation for Javascript files

Usage

  • Clone and run rm -rf .git on Linux/macOS and rd /s /q .git on Windows to remove the link to this git repository. Run git init to initialize your own repo.
  • Write all your ES2015+ Javascript code in src/js and SCSS styling in src/style. Store static assets in src/static. Organize HTML files the way you like.
  • Available commands:
    • npm run start:dev: Run webpack-dev-server at localhost:7777. Includes live reloading on any Javascript/SCSS/HTML changes.
    • npm run build: Build files to the dist folder. Transpiles down to ES5 and bundles all JS into all.min.js. Transpiles SCSS to CSS and adds prefixing into all.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 on localhost:8080 with http-server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •