Skip to content

shama/css-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css loader for webpack

Usage

var css = require("css!./file.css");
// => returns css code from file.css, resolves imports and url(...)

@import will be required with this css loader.

url(...) will be required with the loader specified in the options. If options.css.requireUrl is a string it will be prefixed to the required url. If it isn't a string url(...) will not be replaced. options.css.requireUrl defaults to "file/auto!".

A alternative to the file-loader is the url-loader which can use Data Urls. The use it specify "url/auto!".

Don't forget to polyfill require if you want to use it in node. See webpack documentation.

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

css loader module for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%