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

per-file uglify options #34

Open
KoryNunn opened this issue May 3, 2015 · 3 comments
Open

per-file uglify options #34

KoryNunn opened this issue May 3, 2015 · 3 comments

Comments

@KoryNunn
Copy link

KoryNunn commented May 3, 2015

I'm using ignore to allow es6-weak-map to work, but I'd like to at least strip white space to get it as small as possible without breaking it.

Is there a way to pass uglify options based on a glob pattern?

@weilu
Copy link
Collaborator

weilu commented May 11, 2015

Have you tried mangle: false?

@KoryNunn
Copy link
Author

That will apply to all files, I only want to affect a single file.

@weilu
Copy link
Collaborator

weilu commented May 12, 2015

I don't know of any uglify option that does what you want. Try writing your own browserify transform to strip the whitespace? Alternatively, if you are not already doing it, gzip almost always provides more performance gain than uglify ;)

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

2 participants