load-styles
<style>
tag to the document's <head>
node.
Add a CSS Installation
$ npm install load-styles
API
<style>
loadStyles(String cssStr[, Document doc]) → Creates a <style>
DOM node with the specified cssStr
text injected into it.
Then, the <style>
node is inserted into the <head>
element of the doc
document instance. Finally, the DOM node is returned back to the user in case
any further action is required on the node.
Example
This div should be red.
var loadStyles = ;;
License
MIT