Skip to content

dorian-marchal/simple-css-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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>

About

Lightweight CSS loader for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published