Hugulp screenshot

Hugulp

Author Avatar Theme by Jbrodriguez
Updated: 7 Aug 2021
154 Stars

Hugo + Gulp starter project

Overview

Hugulp is a tool for optimizing the assets of a Hugo website by mimicking the Ruby on Rails Asset Pipeline. It minifies, concatenates, and fingerprints the assets used in a website, resulting in fewer and smaller network requests and improving user experience. Hugulp is built on Gulp and includes several tools, tasks, and workflows such as sass, less, autoprefixer, clean-css, jshint, uglify, imagemin, gulp-rev, and gulp-rev-replace.

Features

  • Minifies, concatenates, and fingerprints assets used in a Hugo website
  • Supports sass, less, and javascript pre-processing
  • Uses Gulp to automate asset optimization tasks
  • Includes tools such as autoprefixer, clean-css, jshint, uglify, imagemin, gulp-rev, and gulp-rev-replace

Installation

  1. Install Node on your system.
  2. Run the following command:
npm install -g hugulp
  1. Alternatively, you can build and run Hugulp using Docker. Note that you need to be familiar with Docker to manage the Docker machine. The following commands are for creating a new Docker machine:
./scripts/create-docker-machine-and-run-it

Summary

Hugulp is a tool that optimizes the assets of a Hugo website by mimicking the Ruby on Rails Asset Pipeline. It minifies, concatenates, and fingerprints the assets, resulting in improved user experience with fewer and smaller network requests. Hugulp is powered by Gulp and includes several tools and workflows for asset optimization.