mirror of https://github.com/4xmen/xshop.git
added minify output
parent
84824aaee0
commit
ecf88a7dac
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,149 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* This file is part of Laravel Minify.
|
||||||
|
*
|
||||||
|
* (c) Fahli Saputra <saputra@fahli.net>
|
||||||
|
* (c) DulLah <dulah755@gmail.com>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Minify Blade Views
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| 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: true
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'enabled' => env('MINIFY_ENABLED', true),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Minify Assets Resources
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This option enables minification of the assets inside the resources/
|
||||||
|
| directory. Only css and js files will be minified. These optimizations
|
||||||
|
| have little impact on php processing time.
|
||||||
|
|
|
||||||
|
| Place your assets in the resources/js or resources/css directory and
|
||||||
|
| they will be minified and served from the _minify route.
|
||||||
|
|
|
||||||
|
| Default: false
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'assets_enabled' => env('MINIFY_ASSETS_ENABLED', true),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Automatic Insert Semicolon
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This option will automatically add semicolon at the end of the css and
|
||||||
|
| js code. This may cause an error if the code is not written properly.
|
||||||
|
| Please use with caution!
|
||||||
|
|
|
||||||
|
| Default: false
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'insert_semicolon' => [
|
||||||
|
'css' => env('MINIFY_CSS_SEMICOLON', false),
|
||||||
|
'js' => env('MINIFY_JS_SEMICOLON', false),
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Remove HTML Comments
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This option will remove all HTML comments from the output.
|
||||||
|
|
|
||||||
|
| Default: true
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'remove_comments' => env('MINIFY_REMOVE_COMMENTS', true),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Obfuscate Javascript
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This option will obfuscate the javascript code. This may cause an error
|
||||||
|
| if the code is not written properly. Please use with caution!
|
||||||
|
|
|
||||||
|
| Default: false
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
'obfuscate' => env('MINIFY_OBFUSCATE', true),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Ignore Routes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Here you can specify paths, which you don't want to minify. You can use
|
||||||
|
| '*' as wildcard.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'ignore' => [
|
||||||
|
// "*/download/*",
|
||||||
|
// "admin/*",
|
||||||
|
// "*/user"
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Enable Directive Replacement
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Known issue: Minify for Laravel will replace all unnecessary characters
|
||||||
|
| in the HTML, including @.
|
||||||
|
|
|
||||||
|
| Here you can specify whether to enable directive replacement or not.
|
||||||
|
|
|
||||||
|
| Default: false
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'enable_directive_replacement' => false,
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Custom Directives Replacement
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Here you can specify the directives that you want to replace. For example,
|
||||||
|
| if you using AlpineJS with shorthand directive @click, you can replace it
|
||||||
|
| by adding '@' => 'x-on:' to the directives array.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'directives' => [
|
||||||
|
'@' => 'x-on:',
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Keep Directives
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Here you can specify the directives that you want to keep. For example,
|
||||||
|
| if you want to keep @vite directive, you can add '@vite' to the
|
||||||
|
| keep_directives array.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'keep_directives' => [
|
||||||
|
'@vite',
|
||||||
|
],
|
||||||
|
];
|
Loading…
Reference in New Issue