-
Notifications
You must be signed in to change notification settings - Fork 447
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
Minify generates minified content twice when not given an explicit path. #1152
Comments
This reverts commit 46f6b44.
I feel like there is something broken now (F3 3.7.0) ... I pass a comma separated list of files to the minifyer and only the first file is included. Am I doing wrong? Under F3 3.6.5 it had worked. echo \Web::instance()->minify("file1.js,file2.js,file3.js", null, true, 'js/'); |
Hey @dduers I notices something similiar earlier today and opened an issue: f3-factory/fatfree-core#289 |
You already closed your issue? |
Hey @dduers |
@leonardfischer yes, ok |
It's already solved here. please checkout latest dev version... will release a patch version soon |
FFF: version 3.6
File: Web.php
Function: minify()
To reproduce: echo minify(["your_javascript_file.js"]);
Result: the content of the file is minified twice and concatenated. ( ... causing javascript to run twice once received by the browser ...)
Cause: line 587: $path=$fw->get('UI').';./'; results in $path being "./;./;" causing the foreach statement on line 588 to run twice for the "./" directory.
Expected result: the minified content should be returned only once.
Solution: remove doubles on the result of $fw->split($path,FALSE)
Workaround: call minify() with an explicit "./" path parameter.
The text was updated successfully, but these errors were encountered: