neosrulez/jsminifier

Last activity on 11 November 2020
  • 1166
composer require neosrulez/jsminifier

A package to minifie JS for Neos CMS

1.2.2

A package to minifie JS for Neos CMS

Version
1.2.2
Type
neos-plugin
Release Date
28.11.2020 16:03:02
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
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 40 package(s).