neosrulez/jsminifier

Last activity 28 Nov 2020 1198
composer require neosrulez/jsminifier

A package to minifie JS for Neos CMS

1.2.2

Version
1.2.2
Type
neos-plugin
Release Date
Nov 28, 2020 16:03
Source
git
Distribution
zip
GPL-3.0-or-later 14a6e14c060e6ea2e9fab2c86a1b2945081f68f4

Neos CMS JS Minifier

A Neos CMS plugin to minifie JS for Neos CMS

Installation

The NeosRulez.JsMinifier package is listed on packagist (https://packagist.org/packages/neosrulez/jsminifier) - therefore you don't have to include the package in your "repositories" entry any more.

Just add the following line to your require section:

"neosrulez/jsminifier": "*"

And the run this command to fetch the plugin:

composer update

Fusion

In your site package Fusion file you can add the .js files to minifie

prototype(Neos.Neos:Page) {
    head {
        yourjs = NeosRulez.JsMinifier:JsFile
        yourjs {
            source = 'resource://Your.Site/Private/JavaScript/app.js'
            inline = FALSE
            outputFolder = 'resource://Your.Site/Public/JavaScript/'
        }
    }
}

Author

The content of the readme is provided by Github
The same vendor provides 71 package(s).