Skip to content

Opinionated boilerplate for simple frontend projects

Notifications You must be signed in to change notification settings

klaemo/web-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Boilerplate

A bunch of npm scripts plumbing for my frontend projects so I don't have to set this up from scratch every time.

Installation

Download this project and run:

npm install

or use this one-liner:

mkdir web-boilerplate && cd web-boilerplate && curl -L# https://github.com/klaemo/web-boilerplate/archive/master.zip | tar xz --strip 1 && npm install

Development

Starts server, watches JS and CSS

npm run dev

Production build

  • Bundles, transpiles and minifies JS
  • Bundles, post-processes and minifies CSS.
  • Optimizes images.
  • Appends hash to filenames for reliable cache busting.
  • Replaces references to images in CSS with hashed version (e.g. /img/image.png -> /img/image.0dedbaee.png).

Everything ends up in public and is ready to be deployed somewhere

npm run compile

Possible enhancements:

License

MIT

About

Opinionated boilerplate for simple frontend projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages