0.1.1 • Published 9 years ago
simple-css-loader v0.1.1
Lightweight CSS loader for webpack
Inject a CSS file in the DOM.
Useful for loading a simple CSS file without embedding both css-loader and style-loader in your script.
Installation
npm install --save-dev simple-css-loader
Usage
With this style.css :
a {
    color: red;
}
a:hover {
    color: blue;
},
require('simple-css!./style.css');will append this Dom node to <head> :
<style type="text/css" >
a {
    color: red;
}
a:hover {
    color: blue;
}
</style>