Multiple public directories in Meteor? -
in meteor, can have multiple client
, multiple server
directories, etc. (ex: /foo/client/
, /bar/client/
) segment app behavior, example /users/*
user management, subs, methods, ui, etc., or /inv/*
inventory management, collections, subs, methods, ui, etc., , other parts of app. allow code organisation , separate components , methods app scale better in long term.
this works quite far, need add assets each segments of app and, since /public
directory content copied on /.meteor/.local/build/programs/web.browser/app
, wanted know if possible have multiple public directories, files merged build target?
no isn't possible have multiple public directories within single application. disallowed meteor's isobuild system. if want maintain separate /public
directories related component functionality, should leveraging meteor packages. packages can have own public assets. "building large apps: tips" hackpad talks how can leverage "packages-for-everything" approach meteor , achieve type of component separation (with separate public assets) you're looking for. being said of meteor community has either moved, or starting move, away "packages-for-everything" approach. launch of meteor 1.3 , es2015 module support has made approach unnecessary (with few exceptions, maintaining separate public assets).
Comments
Post a Comment