How to add style in the application? If normal autoload, then our file is connected via a tag and cached. If through import, then styles are added to the tag, which in turn means that the styles are not cached. But the site is divided into two parts: the user and admin panel, and did not want to download the style from the admin panel for regular users. How to be in this case?

    1 answer 1

    On the English-speaking SO they suggest using the option of using the mrt package : external-file-loader . Example:

     Template.myCustomTemplate.created = function () {
       Meteor.Loader.loadCss ("// example.com/myCSS/style.css");
     };
    

    Link to the original