Fixes #3 Remove HTML min

This commit is contained in:
Jérémy Munsch 2023-03-23 16:04:33 +01:00
parent c0d8fdb73f
commit 979a1cf613
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
4 changed files with 3 additions and 203 deletions

View file

@ -18,7 +18,6 @@
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.4",
"htmlmin/htmlmin": "^8.0",
"kwaadpepper/enum": "^2.1",
"kwaadpepper/image-resizer": "^0.1.0",
"kwaadpepper/refresh-sitemap": "^1.0",

132
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e886be465cba21aa4c49eda320072b51",
"content-hash": "d4726f38d43585d27af789c4a2b8f7b6",
"packages": [
{
"name": "asm89/stack-cors",
@ -1994,85 +1994,6 @@
],
"time": "2022-06-20T21:43:03+00:00"
},
{
"name": "htmlmin/htmlmin",
"version": "v8.0.0",
"source": {
"type": "git",
"url": "https://github.com/HTMLMin/Laravel-HTMLMin.git",
"reference": "e67fe976e3fd1e92568341ce84f338fa4c0ffc47"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/HTMLMin/Laravel-HTMLMin/zipball/e67fe976e3fd1e92568341ce84f338fa4c0ffc47",
"reference": "e67fe976e3fd1e92568341ce84f338fa4c0ffc47",
"shasum": ""
},
"require": {
"illuminate/contracts": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0",
"illuminate/filesystem": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0",
"illuminate/http": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0",
"illuminate/routing": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0",
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0",
"illuminate/view": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0",
"mrclay/minify": "^2.2",
"php": ">=5.5.9"
},
"require-dev": {
"graham-campbell/testbench": "^3.1|^4.0|^5.0",
"mockery/mockery": "^0.9.4|^1.0",
"phpunit/phpunit": "^4.8|^5.0|^6.0|^7.0|^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.0-dev"
},
"laravel": {
"providers": [
"HTMLMin\\HTMLMin\\HTMLMinServiceProvider"
],
"aliases": {
"HTMLMin": "HTMLMin\\HTMLMin\\Facades\\HTMLMin"
}
}
},
"autoload": {
"psr-4": {
"HTMLMin\\HTMLMin\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Graham Campbell",
"email": "graham@alt-three.com"
},
{
"name": "Raza Mehdi",
"email": "srmk@outlook.com"
}
],
"description": "HTMLMin Is A Simple HTML Minifier For Laravel 5",
"keywords": [
"Laravel HTMLMin",
"Laravel-HTMLMin",
"framework",
"html",
"html minifier",
"htmlmin",
"laravel",
"minifier"
],
"support": {
"issues": "https://github.com/HTMLMin/Laravel-HTMLMin/issues",
"source": "https://github.com/HTMLMin/Laravel-HTMLMin/tree/master"
},
"time": "2020-09-08T07:03:59+00:00"
},
{
"name": "http-interop/http-factory-guzzle",
"version": "1.2.0",
@ -3698,57 +3619,6 @@
],
"time": "2022-12-15T11:24:39+00:00"
},
{
"name": "mrclay/minify",
"version": "2.3.3",
"source": {
"type": "git",
"url": "https://github.com/mrclay/minify.git",
"reference": "1928e89208d28e91427b2f13b67acdbd8cd01ac9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mrclay/minify/zipball/1928e89208d28e91427b2f13b67acdbd8cd01ac9",
"reference": "1928e89208d28e91427b2f13b67acdbd8cd01ac9",
"shasum": ""
},
"require": {
"ext-pcre": "*",
"php": ">=5.2.1"
},
"require-dev": {
"tubalmartin/cssmin": "~2.4.8"
},
"suggest": {
"tubalmartin/cssmin": "Support minify with CSSMin (YUI PHP port)"
},
"type": "library",
"autoload": {
"classmap": [
"min/lib/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Stephen Clay",
"email": "steve@mrclay.org",
"role": "Developer"
}
],
"description": "Minify is a PHP5 app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers",
"homepage": "http://code.google.com/p/minify/",
"support": {
"email": "minify@googlegroups.com",
"issues": "http://code.google.com/p/minify/issues/list",
"source": "https://github.com/mrclay/minify/tree/2.x",
"wiki": "http://code.google.com/p/minify/w/list"
},
"time": "2017-11-03T21:04:01+00:00"
},
{
"name": "myclabs/deep-copy",
"version": "1.11.1",

View file

@ -148,6 +148,7 @@ return [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
@ -174,11 +175,11 @@ return [
/*
* Package Service Providers...
*/
HTMLMin\HTMLMin\HTMLMinServiceProvider::class,
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,

View file

@ -1,70 +0,0 @@
<?php
/*
* This file is part of Laravel HTMLMin.
*
* (c) Graham Campbell <graham@alt-three.com>
* (c) Raza Mehdi <srmk@outlook.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Automatic Blade Optimizations
|--------------------------------------------------------------------------
|
| This option enables minification of the blade views as they are
| compiled. These optimizations have little impact on php processing time
| as the optimizations are only applied once and are cached. This package
| will do nothing by default to allow it to be used without minifying
| pages automatically.
|
| Default: false
|
*/
'blade' => env('APP_DEBUG') ? false : 'html',
/*
|--------------------------------------------------------------------------
| Force Blade Optimizations
|--------------------------------------------------------------------------
|
| This option forces blade minification on views where there such
| minification may be dangerous. This should only be used if you are fully
| aware of the potential issues this may cause. Obviously, this setting is
| dependent on blade minification actually being enabled.
|
| PLEASE USE WITH CAUTION
|
| Default: false
|
*/
'force' => false,
/*
|--------------------------------------------------------------------------
| Ignore Blade Files
|--------------------------------------------------------------------------
|
| Here you can specify paths, which you don't want to minify.
|
*/
'ignore' => [
'resources/views/emails',
'resources/views/html',
'resources/views/notifications',
'resources/views/markdown',
'resources/views/vendor/emails',
'resources/views/vendor/html',
'resources/views/vendor/notifications',
'resources/views/vendor/markdown',
],
];