Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This would help debugging a lot.ca362ad2bc6d005e288b2493077f140e315a862a
Comment | File | Size | Author |
---|---|---|---|
#2 | blazy-3084187-2-Add-option-to-serve-un-minified-JS.patch | 2.7 KB | geek-merlin |
Comments
Comment #2
geek-merlinHere's my temporary patch of .libraries.yml. I'd say we can do this and rely on core or advagg minification, but YMMV.
Comment #3
gausarts CreditAttribution: gausarts commentedI know a bit weird, but I never use AdvAgg, that is why all my modules' JS files are minified. Perhaps someday I should use it, anyway :)
Until then, perhaps modifying with
hook_library_info_alter
is the way to go, given a new option such asDisable JS minification?
is enabled under Blazy UI settings?Other reason is even with JS minified enabled I could still debug issues at Chrome Dev tool where you are still given unminified JS versions.
However if your approach is making your life easier, I have no other objections.
If you commit it, please also delete the no-longer in-use minified JS files.
Feel free to commit it on your discretion. Thanks!
Comment #4
geek-merlinOK so i'm going to do some more needed changes and commit this. (I know that chrome feature but it does not help un-obfuscate variable names ;-)
Leaving open to amend this if something unexpectedly breaks.
Comment #6
geek-merlinComment #7
geek-merlinOK, automatic ans manual tests pass.