How to specify a specific css file in METEOR

Meteor collects all css into a single file and does not allow css to be printed. A.

I would like to be able to specify a specific css file that should not be included in the css package And I would like to include:

<link rel="stylesheet" href="print-only.css" type="text/css" media="print" /> 

On the meteor page.

+2
source share
1 answer

You can declare CSS media types inside a CSS file. You do not need several different files for this.

For example, from http://www.w3schools.com/css/css_mediatypes.asp :

 @media screen { p { font-family: verdana, sans-serif; font-size: 17px; } } @media print { p { font-family: georgia, serif; font-size: 14px; color: blue; } } 
+1
source

Source: https://habr.com/ru/post/1412695/


All Articles