This package has been deprecated

Author message:

This module has been moved to @microsoft/loader-load-themed-styles

load-themed-styles-loader
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

load-themed-styles loader for webpack

installation

npm install load-themed-styles-loader --save-dev

Overview

This simple loader wraps the loading of CSS in script equivalent to require("load-themed-styles").loadStyles( /* css text */ ). It is designed to be a replacement for style-loader.

Usage

Documentation: Using loaders

This loader is designed to be used in conjunction with css-loader.

var css = require("load-themed-styles!css!./file.css");
// => returns css code from file.css, uses load-themed-styles to load the CSS on the page.

Example config

This webpack config can load css files, embed small png images as Data Urls and jpg images as files.

module.exports = {
  module: {
    loaders: [
      { test: /\.css$/, loader: "load-themed-styles-loader!css-loader" }
    ]
  }
};

Options

Ths loader does not take any options at present.

License

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

Readme

Keywords

none

Package Sidebar

Install

npm i load-themed-styles-loader

Weekly Downloads

18

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ianc