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

Permit routes definition to be excluded from build #224

Open
kadamwhite opened this issue Sep 14, 2016 · 0 comments
Open

Permit routes definition to be excluded from build #224

kadamwhite opened this issue Sep 14, 2016 · 0 comments
Milestone

Comments

@kadamwhite
Copy link
Collaborator

If I am consuming this library from an application I control, I may have defined a subset of routes I care about (e.g. in a plugin for which this app is a client); I may have no need of the default posts, media etc. As such, the default bootstrapping logic should likely be gated behind a conditional that can be specified in a webpack build (how process.env.production is used to exclude debugging code, for example) to exclude that module from being included & parsed. This ought to notably slim down the final build.

@kadamwhite kadamwhite modified the milestone: 1.0 Dec 6, 2016
@kadamwhite kadamwhite added this to the 2.0 milestone Dec 21, 2018
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

1 participant