Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables #4

Open
sjadema opened this issue Mar 27, 2014 · 4 comments
Open

Environment variables #4

sjadema opened this issue Mar 27, 2014 · 4 comments

Comments

@sjadema
Copy link

sjadema commented Mar 27, 2014

Hey man,

awesome plugin. Works pretty good. Few issues; document_root should not use $_SERVER[document_root], this breaks when you're setting up multiple environments (dev, staging, production). We need to find a clever way to find out the webroot and build the path and url from there. The filesize check to determine the compressor should be the same as in Minify_JS_ClosureCompiler to avoid problems. Do not output the links to twig, instead make css() and js() methods void and give the makeCacheUrl() result to craft()->templates->includeJsFile() and craft()->templates->includeCssFile(). Then the output of those html tags will be handled within Craft itself.

Keep up the good work!

@sjadema
Copy link
Author

sjadema commented Mar 27, 2014

The above issue with the document_root can be fixed with Craft::getPathOfAlias('webroot'). Since this is a core Yii alias it won't get changed any time soon and is safe to use!

@sjadema
Copy link
Author

sjadema commented Mar 27, 2014

Hey man, i've already coded the above improvements. Give me a shout when u want my ComrpessorService.php

@sathoro
Copy link
Owner

sathoro commented Mar 28, 2014

Thanks, can you just do a pull request?

@auralon
Copy link

auralon commented Nov 23, 2015

Can this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants