-
Notifications
You must be signed in to change notification settings - Fork 21
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
How to Exclude *.min.js Files #11
Comments
Was there any resolution to this? I have 3rd party Javascript files in the "public/js" directory that are already minified and, additionally, they have copyright info that must not be removed. The Javascript files I do wish to be minified are located in "app/assets/js". I'm using Play 2.4 and have tried all the following without success:
|
Crickets
|
Perhaps give the following a shot: excludeFilter in uglify := (excludeFilter in uglify).value || GlobFilter("*.min.js") This would prevent the default excludeFilter from being blown away. Edit: fixed typo |
Thanks, however '+:=' generates an expression error:
|
My bad, drop the plus. |
I'd like to combine multiple unminified
.js
files, then minify the combined file and place it in the webapps'spublic/js/main.min.js
. I also want to ignore all WebJars JavaScript because those files are already minified.I tried this:
However all
.js
files, including previously minified.js
files, were combined, which takes forever.I then tried adding this:
But
main.min.js
now just contains:Once I get this test project working, I will try it on my production app, which has dozens of JS files in various subdirectories under
public/
. Hopefully the solution won't require a manual listing of every.js
file.The text was updated successfully, but these errors were encountered: