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

Exclude data from production build #17

Closed
samselikoff opened this issue Feb 16, 2015 · 5 comments · Fixed by #21 or #22
Closed

Exclude data from production build #17

samselikoff opened this issue Feb 16, 2015 · 5 comments · Fixed by #21 or #22

Comments

@samselikoff
Copy link
Collaborator

Right now, the server doesn't run in production (unless force is specified), but all the data + route definitions end up in app.js. Is it possible to exclude these files?

@marcioj
Copy link
Contributor

marcioj commented Feb 17, 2015

I believe it's possible overriding the treeFor hook. I will check it out.

@samselikoff
Copy link
Collaborator Author

awesome, thanks man!

@samselikoff
Copy link
Collaborator Author

@marcioj I just verified this worked with a brand new app. Thanks again for your help!

Another question. I see the files under app/pretender still get included. Do you know if it's possible to exclude these from the build tree in production?

@marcioj
Copy link
Contributor

marcioj commented Feb 20, 2015

Good catch @samselikoff. I believe that #22 should fix it. Can you give a look?

@samselikoff
Copy link
Collaborator Author

Verified this works, thanks again !

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