Skip to content

Webpack 4 Boilerplate for Babel, Sass, live server, and reload.

Notifications You must be signed in to change notification settings

loriensleafs/webpack-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Boilerplate

A minimalist Webpack boilerplate to use the latest JavaScript, and compile Sass into CSS.

Installation

git clone [email protected]:taniarascia/webpack-boilerplate.git
cd webpack-boilerplate
npm install

Features

  • Babel - transpile the latest JavaScript
  • Html Webpack - generate the index.html entry point
  • Clean Webpack - clean generated dist folder
  • Hot Module Replacement - only reload the part that has changed
  • Webpack Dev Server - launch a local server for development

Commands

npm start

Note: This will not create or affect the dist build.

Start development server on localhost:3005.

npm run build

Generate dist folder with app.bundle.js and index.html.

npm watch

Watch for changes without the live dev server.

Dependencies

npm i -D
  @babel/core \
  @babel/preset-env \
  babel-loader \
  clean-webpack-plugin \
  css-loader \
  html-webpack-plugin \
  node-sass \
  postcss-loader \
  sass-loader \
  style-loader \
  webpack \
  webpack-cli \
  webpack-dev-server \

About

Webpack 4 Boilerplate for Babel, Sass, live server, and reload.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published