Skip to content

Sass Compiler, Image Compressor, Sourcemaps Generator, and CSS Autoprefixer with Gulp 4

Notifications You must be signed in to change notification settings

hilyin/gulp4-sass-compress-images-live-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp 4 Script: Sass, Compress Images, Live Reload

I created this because I couldn't find a tested and working Gulp 4 script for my needs. Works great.

Description

This Gulp script automates the compilation of Sass files and the compression of images. It employs various Gulp plugins to achieve these tasks, such as gulp-sass, gulp-clean-css, gulp-sourcemaps, gulp-imagemin, gulp-rename, gulp-plumber, gulp-autoprefixer, and browser-sync.

Requirements

This script requires Node.js and Gulp to be installed on your system. If you don't have them installed, please follow the instructions on their respective websites to install them.

Installation

  1. Clone the repository to your local machine: git clone git@github.com:hilyin/gulp4-sass-compress-images-live-reload.git
  2. Navigate to the root of the project and install the dependencies: npm install

Usage

To build and serve the project simultaneously, run the following command: npm start.

Alternatively, you can build and serve the project separately:

Building CSS and Compressing Images

npm build

Serving the Project

npm serve

About

Sass Compiler, Image Compressor, Sourcemaps Generator, and CSS Autoprefixer with Gulp 4

Resources

Stars

Watchers

Forks