2017 © Pedro Peláez
 

library jshrink-bundle

This bundle integrate jshrink library as Assetic filter and twig extension

image

salva/jshrink-bundle

This bundle integrate jshrink library as Assetic filter and twig extension

  • Saturday, March 12, 2016
  • by nibsirahsieu
  • Repository
  • 5 Watchers
  • 28 Stars
  • 150,462 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 4 Open issues
  • 7 Versions
  • 9 % Grown

The README.md

SalvaJshrinkBundle

Latest Version on Packagist Build Status Total Downloads, (*1)

This bundle integrate "jshrink library" as Assetic filter and twig extension., (*2)

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*3)

$ composer require salva/jshrink-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*4)

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:, (*5)

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Salva\JshrinkBundle\SalvaJshrinkBundle(),
        );
    }
}

Configuration

Optionally, add the configuration in your config file., (*6)

# app/config.yml
salva_jshrink:
    enabled: true # if false {% jshrink %} tag will not compress the content
    flaggedComments: true

Basic Usage

Minifying JavaScript files, (*7)

{% javascripts '@AcmeFooBundle/Resources/public/js/*' filter='jshrink' %}
    <script src="{{ asset_url }}"></script>
{% endjavascripts %}

Minifying inline JavaScript, (*8)

{% jshrink %}
<script>
    $(document).ready(function() {
        // ...
    });
</script>
{% endjshrink %}

The Versions

12/03 2016

dev-master

9999999-dev https://github.com/nibsirahsieu/SalvaJshrinkBundle

This bundle integrate jshrink library as Assetic filter and twig extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar nibsirahsieu

twig javascript minify symfony bundle assetic jshrink

12/03 2016

1.1.4

1.1.4.0 https://github.com/nibsirahsieu/SalvaJshrinkBundle

This bundle integrate jshrink library as Assetic filter and twig extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar nibsirahsieu

twig javascript minify symfony bundle assetic jshrink

08/12 2015

1.1.3

1.1.3.0 https://github.com/nibsirahsieu/SalvaJshrinkBundle

This bundle integrate jshrink library as Assetic filter and twig extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar nibsirahsieu

twig javascript minify symfony bundle assetic jshrink

11/10 2015

1.1.2

1.1.2.0 https://github.com/nibsirahsieu/SalvaJshrinkBundle

This bundle integrate jshrink library as Assetic filter and twig extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar nibsirahsieu

twig javascript minify symfony bundle assetic jshrink

02/06 2015

v1.1.1

1.1.1.0 https://github.com/nibsirahsieu/SalvaJshrinkBundle

This bundle integrate jshrink library as Assetic filter and twig extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar nibsirahsieu

twig javascript minify symfony bundle assetic jshrink

01/03 2015

v1.1.0

1.1.0.0 https://github.com/nibsirahsieu/SalvaJshrinkBundle

This bundle integrate jshrink library as Assetic filter and twig extension

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar nibsirahsieu

twig javascript minify symfony bundle assetic jshrink

08/10 2014

v1.0.0

1.0.0.0 https://github.com/nibsirahsieu/SalvaJshrinkBundle

This bundle integrate jshrink library as Assetic filter and twig extension

  Sources   Download

MIT

The Requires

 

by Avatar nibsirahsieu

twig javascript minify symfony bundle assetic jshrink