javascript - Making Meteor to exclude certain JS files for anonymous users -


what best approach when there's need to:

  1. deploy meteor.js app meteor.com and
  2. exclude js files being bundled , accessed anonymous users

so far i've understood possible via placing files in question in public folder , conditionally loading them.

is there possibility, namely 1 allow keeping files needed loaded conditionally in client/templates.

thanks much!

jussi

meteor intends send code client in it's build bundle. being said, public , conditionally apply method works, or can write code allows functions ran people logged in. if you're using meteor accounts package, that's simple as

if(meteor.user){     //logged in } else {     //not logged in } 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -