BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
fahlisaputra
/
laravel-minify
/
config
📤 Upload
📝 New File
📁 New Folder
Close
Editing: minify.php
<?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 `assets_storage` option directory and | they will be minified and served from the `assets_route` configured route. | | Default: true | */ 'assets_enabled' => env('MINIFY_ASSETS_ENABLED', true), /* |-------------------------------------------------------------------------- | Minify Assets Route |-------------------------------------------------------------------------- | | This option specifies the route to serve the minified assets. | This route will be used to serve the minified assets from the | resources directory. | | If the `assets_enabled` option is set to false, the route will not be | registered. | | Default: _minify | */ 'assets_route' => env('MINIFY_ASSETS_ROUTE', '_minify'), /* |-------------------------------------------------------------------------- | Minify Assets Storage |-------------------------------------------------------------------------- | | This option specifies the storage path to save the unminified assets. | You can modify this option to change the storage path. For example, you | want to save the unminified assets in the `storage` directory. | | Default: resources | */ 'assets_storage' => env('MINIFY_ASSETS_STORAGE', 'resources'), /* |-------------------------------------------------------------------------- | 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: true | */ 'obfuscate' => env('MINIFY_OBFUSCATE', true), /* |-------------------------------------------------------------------------- | Skip LD+JSON Script Minification |-------------------------------------------------------------------------- | | This option will skip minification of <script type="application/ld+json"> | tags. LD+JSON scripts contain structured data that should remain readable | and unminified for SEO purposes. | | Default: true | */ 'skip_ld_json' => env('MINIFY_SKIP_LD_JSON', 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', ], ];
Save
Cancel