Skip to content

Template for a Web App with WebPack, includes loaders for ES6 (Babel) and CSS/SCSS, plugins for generating on-fly HTML and Browser Sync, uses Bootstrap

Notifications You must be signed in to change notification settings

jhovanymx/webpack-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-template

Template for a Web App with WebPack, includes loaders for ES6 (Babel) and CSS/SCSS, plugins for generating on-fly HTML and Browser Sync, it uses Bootstrap

First step: install required Node JS modules

$ npm install

Second step: run using webpack --watch, it will execute browser-sync-webpack, it run a web server on port 3000 and watching file changes

$ npm start

Third step: open main page

http://localhost:3000

Explaning NodeJS modules

  • @babel/cli & @babel/core: Babel Core for transpiling to Java Script code that understand any browser
  • @babel/preset-env: Set of plugins that transforms ES6/ES2015+ to ES5
  • webpack & webpack-cli: Webpack core and command line utility
  • browser-sync & browser-sync-webpack-plugin: Refresh browser's page when any file changed
  • babel-loader: Webpack loader for transpiling JS files, it invokes Babel
  • style-loader & css-loader: Webpack loaders for processing CSS, includes @import and url declarations
  • sass-loader: Webpack loader for transforming SCSS/SASS to CSS. it invokes node-sass
  • node-sass: SCSS/SASS to CSS conversor
  • html-webpack-plugin: Generates on-fly HTML index or main page, it incrusting tags for loading bundles of JS and CSS code
  • mini-css-extract-plugin: Generates static CSS bundle
  • bootstrap: CSS framework for desing Web Pages
  • jquery: Fast, small, and feature-rich JavaScript library
  • popper.js: A library used to position poppers in web applications

.babelrc

This file indicates the presets that Babel must using

About

Template for a Web App with WebPack, includes loaders for ES6 (Babel) and CSS/SCSS, plugins for generating on-fly HTML and Browser Sync, uses Bootstrap

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published