link-css

v0.1.3
insert a link of css into the <head>
css insert dom browser browserify

insert-css

insert a <link> of css into the <head>

example

var fs = require('fs');
var linkCss = require('link-css');
linkCss('/style.css');

In the page which used this script after bundled by browserify, it will have a <link> tag which load the /style.css into the page.

You can use css-linkify if you like to require('./style.css') directly.

npm i link-css

Metadata

  • MIT
  • Whatever
  • undoZen
  • released 8/4/2016

Downloads

Maintainers