JSPM

  • Created
  • Published
  • Downloads 13882964
  • Score
    100M100P100Q259837F

style loader module for webpack

Package Exports

  • style-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (style-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

style loader for webpack

Usage

require("style!raw!./file.css");
// => add rules in file.css to document

It's recommended to combine it with the css loader: require("style!css!./file.css").

It also possible to add a URL instead of a css string:

require("style/url!file!./file.css");
// => add a <link rel="stlyesheet"> to file.css to document

License

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