mirror of
https://github.com/mrclay/minify.git
synced 2025-08-21 21:26:13 +02:00
Allow specifying files via $min_symlinks paths
If you have an alias/symlink like "//~name" => "/full/path", then you can now serve with the more logical URL http://example.com/min/?f=~name/foo.css Fixes #137
This commit is contained in:
@@ -52,6 +52,7 @@ $server = new Minify($cache);
|
||||
// TODO probably should do this elsewhere...
|
||||
$min_serveOptions['minifierOptions']['text/css']['docRoot'] = $env->getDocRoot();
|
||||
$min_serveOptions['minifierOptions']['text/css']['symlinks'] = $min_symlinks;
|
||||
$min_serveOptions['minApp']['symlinks'] = $min_symlinks;
|
||||
// auto-add targets to allowDirs
|
||||
foreach ($min_symlinks as $uri => $target) {
|
||||
$min_serveOptions['minApp']['allowDirs'][] = $target;
|
||||
|
Reference in New Issue
Block a user