• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minifier - asset minification and versioning library

#1
https://github.com/michalsn/minifier

Installation:

Code:
composer require michalsn/minifier


Configuration:

PHP Code:
public $js = [
    
'all.min.js' => [
        
'jquery-3.2.1.min.js''bootstrap-3.3.7.min.js''main.js',
    ]
]; 
Code:
php spark minify:js


Usage:

PHP Code:
<?= minifier('all.min.js'); ?>
// will produce
// <script type="text/javascript" src="http://localhost/assets/js/all.min.js?v=9ef881911da8d7c4a1c2f19c4878d122"></script> 
Reply


Messages In This Thread
Minifier - asset minification and versioning library - by michalsn - 04-02-2020, 05:43 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.