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.
Would a setting on javascript compression to remove console.log() for production be useful to other users of this module?
I recognize there are different views on whether console.log() in production code is a bad thing. Still, it is probably quite common developers to want debug code on their dev platform while site admins want to be sure the log statements are removed in order to get smaller files and best performance.
If the module owners and community feel this would be a useful feature, I'd be glad to look in to creating a more detailed proposal and patch for that sort of functionality.
Comments
Comment #2
NickDickinsonWildeI don't see a problem including that but I don't have the time to do so myself - do a patch and I'll take a look.
Comment #3
NickDickinsonWildeWith 8.-3.x's new architecture, this would now be very easy.
I may get to it in a while but if not, super easy via the same method as the optimizers.
Comment #4
NickDickinsonWildeDone in 8.x-3.x in the Modifier submodule.
Very minimally tested so far so it may have unexpected results.
Comment #6
NickDickinsonWilde