diff --git a/MIN.txt b/MIN.txt index 8a42c4e..5b593ca 100644 --- a/MIN.txt +++ b/MIN.txt @@ -132,10 +132,10 @@ echo ""; STORING CONFIG FILES OUTSIDE THE MINIFY DIRECTORY -It is possible to store config files (config.php, config-test.php, groupsConfig.php) -in a custom directory outside the Minify directory. This is useful if you wish to -include Minify as an external dependency inside another project via SVN external or -Git submodule inclusion. +It is possible to store config files (min/config.php, min/config-test.php, +min/groupsConfig.php) in a custom directory outside the Minify directory. This is +useful if you wish to include Minify as an external dependency inside another +project via SVN external or Git submodule inclusion. For example, let's assume you have a Minify directory "min" in your site root. Then you could create a new directory called "min-configs" in the site root. Copy any @@ -145,13 +145,18 @@ Then create a new file, for example "min.php" in your site root. The contents of this file could look like this: $customConfigDirectory . '/config.php', + 'test' => $customConfigDirectory . '/config-test.php', + 'groups' => $customConfigDirectory . '/groupsConfig.php' +); include_once 'min/index.php'; You would then reference min.php in your JS and CSS links instead of min/index.php. -This method will also affect those using the Minify_getUri() function. You will need +This method will affect those using the Minify_getUri() function. You will need to add options to calls to that function, e.g.: