1.0.1 • Published 8 years ago

loadstyle-bits v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

loadstyle-bits

bit-imports plugin for loading css into the DOM.

You can configure this module to embed the css in a style tag or to use links.

Use links for better livereload support.

Install

$ npm install loadstyle-bits --save

Options

  • embedded (false) - flag that tells loadstyle-bits to embed css in style DOM nodes.

Example

var loadstyle = require("loadstyle-bits");

loadstyle({
  path: "http://localhost/path/to/some.css"
});

The following example is to embed css in style DOM nodes.

var loadstyle = require("loadstyle-bits");

loadstyle({
  source: "body { color: #938484; }"
}, {
  embedded: true
});

License MIT

1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago