I am not able to load both CSS files on the client, as depending on which orientation the user selects either one or the other CSS are used, not both. There are a huge number of differences between both CSS files, so it is not feasible to use template helpers to change the HTML depending on the selected orientation.
Is what I describe above doable, specifying a specific folder in which to copy the files I need?
Anything you add to the client is available at the URL /packages/AUTHOR_PACKAGENAME/path/you/added. So if your package name was author:package and you added some css files like this,
I was under the impression, that if I supplied client as the architecture, then Meteor would automatically merge all Javascript and CSS files when deploying to production. Is this correct, or is my impression wrong? If correct, then by combining all CSS files into one file, both the normal and Right-to-Left CSS files will both be loaded in the browser, which is what I would like to avoid.
I found the following:
David in his example uses the following for adding assets:
Could the {isAsset: true} prevent the combining and minifying of the CSS files and prevent these from being loaded into the browser by default? I have not been able to find documentation regarding isAsset, but perhaps this might be the way to go.
Again, thanks for your help. I was not aware of this option.
Reading the comments on this answer, @mizzao says that “you should use {isAsset: true} for CSS and JS files that you don’t want auto-loaded on the client.” Then you can access them as shown above on the client if you want.