Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/beyer-stefan/gofiber-minifier

HTML, JavaScript, and CSS minifier for the gofiber-Framework
https://github.com/beyer-stefan/gofiber-minifier

go gofiber golang minifier minify minify-css minify-html minify-javascript web

Last synced: about 2 months ago
JSON representation

HTML, JavaScript, and CSS minifier for the gofiber-Framework

Awesome Lists containing this project

README

        

# gofiber-minifier

## Introduction
Minifier for [Fiber ("gofiber")](https://github.com/gofiber) supporting HTML5, CSS3, and JavaScript.




Fiber Logo

> **Fiber** is an [Express](https://github.com/expressjs/express) inspired **web framework** built on top of [Fasthttp](https://github.com/valyala/fasthttp), the **fastest** HTTP engine for [Go](https://golang.org/doc/). Designed to **ease** things up for **fast** development with **zero memory allocation** and **performance** in mind.

> Minification is the process of removing characters like whitespaces, tab stops, or CR/LR from files without changing their meaning, ultimately shrinking file size and speeding up transmission over the internet.

## Install
```Shell
go get github.com/beyer-stefan/gofiber-minifier
```

## Usage
```Golang
package main

import (
"github.com/gofiber/fiber"
"github.com/beyer-stefan/gofiber-minifier"
)

func main() {
app := fiber.New()

(...)

app.Use(minifier.New(minifier.Config{
MinifyHTML: true,
}))

(...)
}
```

## Credits
This project is based on [minify](https://github.com/tdewolff/minify) by [Taco de Wolff](https://github.com/tdewolff).

## License
Released under the [MIT license](LICENSE.md).

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9810b5e4516d4df8b670da108cd01bf3)](https://app.codacy.com/gh/beyer-stefan/gofiber-minifier/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Go Report Card](https://goreportcard.com/badge/github.com/beyer-stefan/gofiber-minifier)](https://goreportcard.com/badge/github.com/beyer-stefan/gofiber-minifier)
[![Mentioned in Awesome Fiber](https://awesome.re/mentioned-badge.svg)](https://github.com/gofiber/awesome-fiber)