Do not send the entire app to all clients?


#1

Hi,
Here’s what I want:
First send only login part to all clients;
Then when a client is logged in, send him the part of the app that sticks with his permissions (admin, normal user , etc.).
In short, I would rather avoid sending the entire app to everyone (although I already control what is published) .
Is this possible in Meteor? No much hope…
Thank you in advance for your help.


#2

Webpack discussion

Check the above forum post for information on using Webpack to achieve your goal. Good example would be not sending admin functionality to clients unless they log in as admin. The technique is called ‘dynamic loading.’


#3

well, if you divide it to applications and just keep adding DDPs to them, it could be possible in theory.
I have not checked if there is some advanced pattern for meteor-cluster yet.