How to expicitly load only specific (not all) css files in Meteor.js

后端 未结 3 731
一生所求
一生所求 2020-12-19 03:28

I want to develop a usual website with Meteor.js (not one-page web app) and I want to load only specific css files for every page. So not all pages share the same css code.

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-19 03:51

    I found a simple solution. In your meteor project folder create a folder named "public" (no quotes). In that folder create a folder called "css" (no quotes). Put the CSS file in that folder.

    In the html file which you want the specific CSS file to apply to do the following:

    
    
    
    

提交回复
热议问题