laravel-minify icon indicating copy to clipboard operation
laravel-minify copied to clipboard

_minify/route is unusable

Open macit-emre opened this issue 5 months ago • 0 comments

i want to use this for my css and js files under storage directory but, following code bloks me to do this :

        if (!file_exists($path)) {
            return abort(404);
        }

        if (!preg_match("/^(css|js)\//", $file)) {
            return abort(404);
        }

        $content = file_get_contents($path);

first, file_exists path cannot find whatever i give it. It may have an alternative to add APP_DIR or STORAGE_DIR as a prefix. second, my files directory names does not start with css and js directories so, second abort blocks me again.

these can be improved.

macit-emre avatar Sep 08 '24 13:09 macit-emre