npm.io
0.1.1 • Published 10 years ago

simple-css-loader

Licence
—
Version
0.1.1
Deps
0
Vulns
0
Weekly
0
Stars
2

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>