This plugin provides the mechanism to render the page using minified version of HTML, JS and CSS files. Minified HTML is generated using regular expression, JavaScript files are generated using Core Compressor and CSS files are generated using Core or YUI Compressor.
How Minify help
Minify removes the comments and whitespace which will help to reduce the file size. Smaller HTML and file size reduces the page load time and improve the website performance.
Installation
Just add Minify plugin to a project.
Configuration
To configure this Plugin goto Backend System then find CMS in left side bar, then click on Minify, you will get Configuration options.
Change {{...|theme}}
to {{...|minify}}
in your template file.
Clear Cache
$ php artisan minify:clear
-
Elevate
Found the plugin not useful on 5 Oct, 2018
I just bought this today and changing theme to minify causes images to disappear. What am I doing wrong?
-
Sozonov Alexey author
Replied on 6 Oct, 2018
Hello! Can you create issue here. I will try to help you
-
Gustavo Meireles
Found the plugin useful on 19 Nov, 2016
Great plugin, working very well in my project.
-
Alexandru Constantin
Found the plugin useful on 15 Oct, 2016
It does not seem to work for .css and .js files included like this in the template:
<link rel="stylesheet" href="{{ 'assets/css/bootstrap.css'|theme }}" type="text/css" media="all">
How can I get those to be minified as well? (minify CSS and JS plugins is checked in the plugin settings page).
-
Sozonov Alexey author
Replied on 15 Oct, 2016
Just change {{...|theme}} to {{...|minify}} in your template file.
Sorry! I forgot to add this in docs!
-
Antony Tsioukas
Found the plugin useful on 23 Aug, 2016
Nice, can you add an option to disable minify for backend users. This will help developers to find errors in live site. Also you could add a minify option for .css and .js files.
-
Sozonov Alexey author
Replied on 23 Aug, 2016
Nice, can you add an option to disable minify for backend users.
Of course!
Also you could add a minify option for .css and .js files.
Ok, I will try!
-
1.0.13 |
Fixes issue with page response. Feb 28, 2019 |
---|---|
1.0.12 |
Fixes bug. Mar 25, 2018 |
1.0.11 |
Fixes bug. Feb 08, 2018 |
1.0.10 |
Fixed issue with Status Code. Jul 14, 2017 |
1.0.9 |
Added German locale. Jul 14, 2017 |
1.0.8 |
Fixed issue with aliases (@framework.extras). Jul 14, 2017 |
1.0.7 |
Fixed issue with array. Jul 14, 2017 |
1.0.6 |
Added permission Oct 23, 2016 |
1.0.5 |
Fixed Class name Sep 07, 2016 |
1.0.4 |
Added Greek Translation Aug 30, 2016 |
1.0.3 |
Fixed french translation Aug 29, 2016 |
1.0.2 |
Added fr translation. Aug 29, 2016 |
1.0.1 |
First version of Minify Aug 20, 2016 |