alexkrautmann / ES6-webpack-starter

A simple starter template to write vanilla ES6 applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A (very) simple starting point to use ES6 & beyond features in the browser today with Webpack and Babel.

Out of the box includes features up to stage 0, tweak to your needs.

Also supports SASS, just create your *.scss file in /app and require it, or simply change the sample file provided.

Usage

If you don't have webpack installed globally do so by running npm install webpack -g. Then run npm install to install dependencies.

  • npm start will start the live-reload dev server.
  • npm run build will build the site for development use. By default site are output in the dist/ folder
  • npm run production will output a minified build for production use.
  • npm run clean will remove the /dist folder.

Github Pages

After you've built site site, you can publish it to Github Pages by using a git subtree push.
Make sure you've committed dist/ and run git subtree push --prefix dist origin gh-pages.
If you don't want to use Github Pages add dist/ to .gitignore.

About

A simple starter template to write vanilla ES6 applications


Languages

Language:JavaScript 70.7%Language:HTML 20.7%Language:CSS 8.6%