Required for Windows OS:
- Visual Studio Code
- Node.js
- npm (Installed with Node.js)
Run project in Visual Studio Code, and type in terminal command for install all necessary packages:
npm i gulp gulp-sass sass gulp-file-include gulp-clean gulp-server-livereload gulp-sourcemaps gulp-plumber gulp-notify gulp-group-css-media-queries webpack-stream style-loader css-loader gulp-babel @babel/core @babel/preset-env gulp-imagemin@7 gulp-changed gulp-sass-glob gulp-autoprefixer gulp-csso gulp-htmlclean gulp-webp gulp-webp-html gulp-webp-css --save-dev
gulp
— Gulp himselfgulp-sass
— Build SASS / SCSSsass
— Needs for building SASS / SCSSgulp-file-include
— Connecting files to each other. HTML includegulp-clean
— Deleting filesgulp-server-livereload
— Server with page autoreloadgulp-sourcemaps
— Source maps for CSSgulp-plumber
— Fixing error during buildinggulp-notify
— Notificationsgulp-group-css-media-queries
— Grouping CSS media queries
webpack-stream style-loader css-loader
— Webpack packages for .js filesgulp-babel @babel/core @babel/preset-env
— Adding support for older browsers versionsgulp-imagemin@7
— Compressing image files (for production version only)gulp-changed
— Don't rebuilding src files if they not changedgulp-sass-glob
— Better way to build .scss, generates one .scss file from any othersgulp-autoprefixer
— Adding autoprefixesgulp-csso
— Compressing .css filesgulp-htmlclean
— Compressing .html filesgulp-webp gulp-webp-html gulp-webp-css
— Adding .webp support for .html and .css files
Type in Visual Studio Code Terminal:
gulp
for dev build versiongulp docs
for production build version
Note: Except dev version, in production version you will build full app with compressed .html, .scss, images and including .webp files. That's will may take many time.
In dev version that's not including for faster build/rebuild.