dorsetdigital/silverstripe-htmlminifier

HTML minifier for Silverstripe

Maintainers

👁 DorsetDigital

Package info

github.com/DorsetDigital/silverstripe-htmlminifer

Homepage

Type:silverstripe-vendormodule

pkg:composer/dorsetdigital/silverstripe-htmlminifier

Statistics

Installs: 1 438

Dependents: 0

Suggesters: 1

Stars: 4

Open Issues: 0

v1.1.0 2025-04-25 15:22 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 4dbbe22d75d616f792f434718e13942cafc95125

  • Tim Burt <tim.woop@dorset-digital.net>

performancehtmlminifysilverstripe

This package is auto-updated.

Last update: 2026-06-25 17:46:05 UTC


README

This module minifies the output of a Silverstripe site using the HtmlMin package

Requirements

*Silverstripe 4.x

Installation

  • Install the code with composer require dorsetdigital/silverstripe-htmlminifier "^1"
  • Run a dev/build?flush to update your project

Usage

The module needs to be enabled in order to work. This can be done in a yml file:

---
Name: minifierconfig
---

DorsetDigital\SSMinifier\Middleware:
 enable: true
 enable_in_dev: false

The options are hopefully fairly self explanatory:

  • enable - enable minification
  • enable_in_dev - enable minification in dev mode (default false)

Notes

  • The module is disabled in the CMS / admin system

Credits