laravel-minify
laravel-minify copied to clipboard
_minify/route is unusable
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.