Skip to content

Commit

Permalink
config and files to the middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomarinho committed Sep 14, 2017
1 parent a0590a6 commit 6b39876
Show file tree
Hide file tree
Showing 40 changed files with 858 additions and 1 deletion.
40 changes: 39 additions & 1 deletion config/laravel-page-speed.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,44 @@

'filters' => [
'collapse_whitespace' => true,

'remove_comments' => true,
'combine_css' => false,
'combine_heads' => false,
'combine_javascript' => false,
'dedup_inlined_images' => false,
'defer_javascript' => false,
'elide_attributes' => false,
'pedantic' => false,
'extend_cache' => false,
'fallback_rewrite_css_urls' => false,
'flatten_css_imports' => false,
'hint_preload_subresources' => false,
'inline_css' => false,
'inline_google_font_css' => false,
'inline_import_to_link' => false,
'inline_javascript' => false,
'inline_preview_images' => false,
'insert_dns_prefetch' => false,
'insert_ga' => false,
'lazyload_images' => false,
'local_storage_cache' => false,
'make_show_ads_async' => false,
'make_google_analytics_async' => false,
'move_css_above_scripts' => false,
'move_css_to_head' => false,
'outline_css' => false,
'outline_javascript' => false,
'prioritize_critical_css' => false,
'remove_quotes' => false,
'resize_mobile_images' => false,
'resize_rendered_image_dimensions' => false,
'responsive_images' => false,
'rewrite_css' => false,
'rewrite_images' => false,
'rewrite_javascript' => false,
'rewrite_style_attributes' => false,
'rewrite_style_attributes_with_url' => false,
'sprite_images' => false,
'trim_urls' => false
]
];
21 changes: 21 additions & 0 deletions src/Middleware/CombineCss.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class CombineCss
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/CombineHeads.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class CombineHeads
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/CombineJavascript.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class CombineJavascript
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/DedupInlinedImages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class DedupInlinedImages
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/DeferJavascript.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class DeferJavascript
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/ElideAttributes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class ElideAttributes
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/ExtendCache.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class ExtendCache
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/FallbackRewriteCssUrls.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class FallbackRewriteCssUrls
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/FlattenCssImports.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class FlattenCssImports
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/HintPreloadSubresources.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class HintPreloadSubresources
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/InLineGoogleFontCss.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class InLineGoogleFontCss
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/InLineImportToLink.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class InLineImportToLink
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/InLineJavascript.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class InLineJavascript
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/InLinePreviewImages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class InLinePreviewImages
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
21 changes: 21 additions & 0 deletions src/Middleware/InlineCss.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace RenatoMarinho\LaravelPageSpeed\Middleware;

use Closure;

class InlineCss
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/

public function handle($request, Closure $next)
{
}

}
Loading

0 comments on commit 6b39876

Please sign in to comment.