minify-maven-plugin
minify-maven-plugin copied to clipboard
Need to wrap minified file with anonymous function
Question : I want to wrap the minified file with anonymous function. Can anyone help me to find out how can i do this?
Google Closure as the option --output_wrapper
for this:
Interpolate output into this string at the place denoted by the marker token %output%. Use marker token %output|jsstring% to do js string escaping on the output.
Unfortunately, there is no option on the Java API to achieve this. You may want to fill an issue on google/closure-compiler repo and ask for this.