Skip to content
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 #3

Closed
mslinn opened this issue Apr 21, 2015 · 1 comment
Closed

How to Exclude *.min.js Files #3

mslinn opened this issue Apr 21, 2015 · 1 comment

Comments

@mslinn
Copy link

mslinn commented Apr 21, 2015

I'd like to combine multiple unminified .js files, then minify the combined file and place it in the webapps's public/js/main.min.js. I also want to ignore all WebJars JavaScript because those files are already minified.

I tried this:

pipelineStages := Seq(rjs, uglify, digest, gzip)

UglifyKeys.uglifyOps := { js =>
  Seq((js.sortBy(_._2), "main.min.js"))
}

However all .js files, including previously minified .js files, were combined, which takes forever.

I then tried adding this:

excludeFilter in uglify := GlobFilter("*.min.js")

But main.min.js just contains:

define("main",function(){});
//# sourceMappingURL=main.js.map
@mslinn mslinn changed the title UglifyKeys.output is invalid How to Exclude *.min.js files Apr 21, 2015
@mslinn mslinn changed the title How to Exclude *.min.js files How to Exclude *.min.js Files Apr 21, 2015
@mslinn
Copy link
Author

mslinn commented Apr 21, 2015

Issue opened in sbt#11

@mslinn mslinn closed this as completed Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant