link-css

0.1.3 • Public • Published

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.

Package Sidebar

Install

npm i link-css

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • undozen