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

specify output/compress options inline #610

Closed
eleith opened this issue Jan 10, 2015 · 2 comments
Closed

specify output/compress options inline #610

eleith opened this issue Jan 10, 2015 · 2 comments

Comments

@eleith
Copy link

eleith commented Jan 10, 2015

with tools like jshint, it has been valuable to have global options be configured by our build tool, but then on certain files that need to be treated differently, to specify turning on/off certain options inline in the js file through comments like

/* jshint undef: true, unused: true */

it would be nice to do that with uglifyjs2. for example, one of our files we want to preserve quotes around object keys with the quote-keys output option, but we wouldn't want that to be turned on for our other files.

we can hack around it manually, but the inline option would be cleaner.

@avdg
Copy link
Contributor

avdg commented Jan 27, 2015

This issue is related to #361

@rvanvelzen
Copy link
Collaborator

We'll track this in #361. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants