This example is a skeleton for projects which use gulp
The example provides you following functionality:
- Common npm packages (jQuery, Bootstrap, Font-Awesome)
- Sass compiler with gulp-sass
- Automatic vendor prefixer with gulp-autoprefixer
- Uglify css and js with gulp-uglifycss and gulp-uglify
- Gzip with gulp-gzip
- Static asset revisioning by appending content hash to filenames with gulp-rev
- Sourcemaps with gulp built-in support
- Browser refreshing with browser-sync
Clone the project
git clone https://github.com/FabianSchmick/gulp-example.git
Configure your npm packages and gulpfile-config to your preferences
Use the gulp watch task gulp watch
to compile and concat your assets or use gulp watch:bs
if you want to refresh your browser automatically on change (open localhost:3000
).
Run gulp deploy
to minify, prefix and gzip your assets