2017 © Pedro Peláez
 

jelix-module minify-module

module providing a Minify features to a Jelix application.

image

jelix/minify-module

module providing a Minify features to a Jelix application.

  • Monday, December 11, 2017
  • by laurentj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 478 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

This is a module for Jelix, providing Minify features for HTML response objects., (*1)

Minify is a library which allow to concatenate and minify CSS and JS files. It improves performance during the load of the page. This module provides plugins to integrate it into a Jelix application., (*2)

This module is for Jelix 1.7.x and higher. See the jelix/jelix repository to see its history before Jelix 1.7., (*3)

Installation

Install it by hands like any other Jelix modules, or use Composer if you installed Jelix 1.7+ with Composer., (*4)

In your project:, (*5)

composer require "jelix/minify-module"

Launch the configurator for your application to enable and configure the module, (*6)

php yourapp/dev.php module:configure jminify

Then run the installer, (*7)

php yourapp/install/installer.php

You can use the module., (*8)

Configuring the module

In the configuration file of the application, after the installation you should have these parameters in the jResponseHtml section:, (*9)

[jResponseHtml]
plugins = minify

;concatenate and minify CSS and/or JS files :
minifyCSS = off # [on|off] : concatenate/minify CSS files
minifyJS = off # [on|off] : concatenate/minify JS files

; list of filenames (no path) which shouldn't be minified - coma separated :
minifyExcludeCSS = "file1.css,file2.css"
minifyExcludeJS = "jelix/wymeditor/jquery.wymeditor.js"

; bootstrap file for Minify. indicate a relative path to the basePath.
minifyEntryPoint = minify.php

With minifyCSS and minifyJS you activate the "minification". You can indicate files to NOT minify in minifyExcludeCSS and minifyExcludeJS. Keep the file name jelix/wymeditor/jquery.wymeditor.js (which is bundled into Jelix) in minifyExcludeJS. Wymeditor doesn't like to be concatenated with other files., (*10)

Indicated path should be, (*11)

  • relative to the base path of the application (without a leading /)
  • or relative to the domain name (with a leading /)

Don't indicate full URL (with http://...), they are automatically excluded., (*12)

Configuring Minify

The module install a copy a script minify.php in your www/ directory. If you want to choose an other name for this script, indicate its name into the option minifyEntryPoint., (*13)

The module installer create also minifyConfig.php and minifyGroupsConfig.php into the app/system directory of your application. These are files to set Minify native options. Read the documentation of Minify to know options., (*14)

unit tests

Unit tests are in Testapp, in the jelix/jelix repository., (*15)

The Versions

11/12 2017

dev-jelix2

dev-jelix2 http://jelix.org

module providing a Minify features to a Jelix application.

  Sources   Download

LGPL-2.1

The Requires

 

css js minify concatenation

11/12 2017

dev-master

9999999-dev http://jelix.org

module providing a Minify features to a Jelix application.

  Sources   Download

LGPL-2.1

The Requires

 

css js minify concatenation

02/05 2017

v1.7.1

1.7.1.0 http://jelix.org

module providing a Minify features to a Jelix application.

  Sources   Download

LGPL-2.1

The Requires

 

css js minify concatenation

21/05 2015

v1.7.0

1.7.0.0 http://jelix.org

module providing a Minify features to a Jelix application.

  Sources   Download

LGPL-2.1

The Requires

 

css js minify concatenation