Boilerplate with Gulp, for SASS, and Webpack, for js bundling
Before using this boilerplate, you must have installed:
- Node js (https://nodejs.org/en)
- Gulp (https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md)
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.
Two Gulp tasks.
- It watches and compiles .scss files;
- It watches and bundles .js files, using webpack.config.js inside Gulp.
npm run build:dev
A Gulp task and Webpack
- It compiles .scss files;
- It bundles .js files
npm run build:prod
Install packages to bundle javascript with Webpack
- webpack
- webpack-cli
- webpack-stream
- webpack-dev-server
- babel-core
- babel-loader
- babel-preset-env
Install packages to compile SASS with Gulp
- gulp
- gulp-sass-glob
- gulp-sass
- gulp-plumber
- gulp-sourcemaps
- gulp-watch
- webpack-stream