A front-end boilerplate with Gulp, Sass, webpack and Babel.
- Gulp
- webpack bundling
- Babel
- Sass & autoprefixer
- sourcemaps
- browser-sync
- cssnano, uglify, imagemin & usemin
- Install NodeJS.
- Install gulp globally
npm install -g gulp
- Download or clone this repo
https://githubcom/StephenOwen07/gulp-sass-webpack-starter-kit.git
- Run
npm install
from the root directory. - Run
gulp watch
gulp watch
will start browser-sync server and refresh your browser on save.- Additionally it will compile your SCSS files.
- wepack will bundle your JavaScript and compile ES6.
- SCSS and JS will be compiled to the temp folder.
- Run
gulp build
- Build task will prepare your files for deployment in the dist folder
- Build task will compress images, concat and minify styles and scripts.
- Run
gulp previewDist
to launch browser-sync on the dist folder.