PHP code example of fabiang / assetic-google-closure-compiler
1. Go to this page and download the library: Download fabiang/assetic-google-closure-compiler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fabiang / assetic-google-closure-compiler example snippets
return [
'assetic_configuration' => [
// [...]
'modules' => [
'MyModule' => [
'collections' => [
'my_collection' => [
'filters' => [
'?JSMinFilter' => [
'name' => Assetic\Filter\GoogleClosure\CompilerJarFilter::class,
'option' => [
realpath('node_modules/google-closure-compiler/compiler.jar'),
],
],
],
],
],
],
],
],
];