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

Customizable build #70

Closed
raimohanska opened this issue Feb 1, 2013 · 3 comments
Closed

Customizable build #70

raimohanska opened this issue Feb 1, 2013 · 3 comments

Comments

@raimohanska
Copy link
Contributor

As pointed out in #69, It would be great to be able to build a custom minified version of Bacon. That would allow us to include more features into the core without bloating the end-user library.

Any ideas how to do this?

@lautis
Copy link
Member

lautis commented Feb 1, 2013

UglifyJS could be used to remove parts of code using defines.

if FEATURE_FLAG
  # code

You can define FEATURE_FLAG as constant in UglifyJS build process. UglifyJS will optimize the code accordingly.

@raimohanska
Copy link
Contributor Author

I guess it would make more sense to make separate modules instead of a flag-based build system, as suggested in #74. Closing this for now, because I don't really see this happening at least in the near future.

@texastoland
Copy link
Contributor

modules instead of a flag-based build system

👍

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

3 participants