insert css file into the <head>
element
npm install load-css-file --save
var loadCss = require('load-css-file');
loadCss('https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css');
// or
loadCss({
href: 'normalize.css',
rel: 'stylesheet',
text: 'text/css'
})
source string
where to load the css from.
css attribute object
. For available attributes see html link
specification.
e.g. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link