Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Latest commit

 

History

History
61 lines (45 loc) · 1.22 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.22 KB

Gulp-Webpack boilerplate

Boilerplate with Gulp, for SASS, and Webpack, for js bundling

For beginners

Before using this boilerplate, you must have installed:

Then, in the command line, navigate to the project's folder and run npm install. This is to install the dependencies in package.js.

Ask me if you have any difficulty.

Build Scripts

Development

Two Gulp tasks.

  1. It watches and compiles .scss files;
  2. It watches and bundles .js files, using webpack.config.js inside Gulp.
npm run build:dev

Production

A Gulp task and Webpack

  1. It compiles .scss files;
  2. It bundles .js files
npm run build:prod

Installed packages

Webpack

Install packages to bundle javascript with Webpack

  • webpack
  • webpack-cli
  • webpack-stream
  • webpack-dev-server
  • babel-core
  • babel-loader
  • babel-preset-env

Gulp (sass)

Install packages to compile SASS with Gulp

  • gulp
  • gulp-sass-glob
  • gulp-sass
  • gulp-plumber
  • gulp-sourcemaps
  • gulp-watch
  • webpack-stream

Credits