webassets-iife webassets-iife is a webassets filter to wrap a JavaScript bundle in an IIFE to prevent global leaks and improve minification. Install pip install webassets-iife The filter works with both Python 2.x and 3.x. Usage Read the docs.